Set portrait in different file formats