jpg-to-heif-converter icon indicating copy to clipboard operation
jpg-to-heif-converter copied to clipboard

Wrong orientation after conversion

Open mbirth opened this issue 4 years ago • 2 comments

After converting the attached photo, it turns from portrait to landscape.

IMG_20200621_1745383.jpg.zip

P.S.: Are there really no quality settings for the conversion?

mbirth avatar Nov 08 '20 01:11 mbirth

@mbirth there is no quality settings in this app, but you could use the following snippets to adjust it:

            let options = [kCGImageDestinationLossyCompressionQuality: 9.0]
            CGImageDestinationAddImageAndMetadata(destination, image, imageMetadata, options as CFDictionary)

fbzhong avatar Nov 22 '20 06:11 fbzhong

Hi. I tried your file and have the same issue. For some reason during copying metadata during conversion orientation value resets. There's no manual code for changing metadata, everything happens on macOS side so probably it's a macOS bug.

If anyone knows how to fix it - PR is welcome.

For quality settings there's new slider in new version: https://github.com/makoni/jpg-to-heif-converter/releases/tag/1.06

makoni avatar Dec 11 '20 10:12 makoni