Correct portrait in different file formats