nihui / waifu2x-ncnn-vulkan

waifu2x converter ncnn version, runs fast on intel / amd / nvidia / apple-silicon GPU with vulkan
MIT License
3.01k stars 210 forks source link

Images rotated 90° #119

Open ibmua opened 3 years ago

ibmua commented 3 years ago

I had some of my images rotated 90°. I didn't notice any logic behind which images get rotated and which didn't, but I'll just say that all of the ones that did rotate had height>width.

TilCreator commented 3 years ago

It is possible that some images only use EXIF to rotate an image and that is possibly not supported. This should be fixed in code (reading the EXIF information and rotating the image accordingly or reapplying the EXIF data on export). A workaround is to just apply the rotation without EXIF.

nagadomi commented 3 years ago

maybe related articles: The dumb reason your fancy Computer Vision app isn’t working: Exif Orientation