jp2a
jp2a copied to clipboard
Phone portrait mode photos are rotated by 90°
When converting images shot on a smartphone in portrait mode, the output is rotated anti-clockwise by 90°. This might have to do with the image metadata not being read properly, or at least not the part that tells that the image is rotated 90°.
Would you be able to share an image where this happens for debugging? I was not able to reproduce this issue with my smartphone. Different software on different smartphones might rotate images using different techniques.
I found the issue on these two photos:
Screenshots
If it helps, ascii-image-converter has the same problem.
I've talked about this with more people, and it seems to be a problem the image library used to open the image should take care of.
What library is jp2a using?
jp2a uses libjpeg. However most people will have the optimized version libjpeg-turbo installed.
So the libjpeg-turbo devs rejected my issue. I guess someone will have to do a manual check for EXIF rotation tags, either jp2a or the frontend.
Added support for Exif orientation using libexif, new release coming soon (or build from the develop branch right now).