TheZoraiz / ascii-image-converter

A cross-platform command-line tool to convert images into ascii art and print them on the console. Now supports braille art!
Apache License 2.0
2.05k stars 121 forks source link

Phone portrait mode photos are rotated by 90° #37

Open gregorni opened 1 year ago

gregorni commented 1 year ago

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°.

This is the exact same issue as https://github.com/Talinx/jp2a/issues/13

TheZoraiz commented 1 year ago

A lot of smartphones and devices save image orientation in the form of EXIF metadata, rather than manually rotating the image. Most image viewers are capable of reading EXIF metadata and rotate the image accordingly, but I didn't know of this phenomenon let alone consider it while developing this program lol.

I would like to put this on the back burner for now. Progress on this project has been slow as of late since I haven't found any time to work on it, but I plan to release an update some time later addressing major open issues.

For now, you can use tools such as GIMP to apply appropriate orientation on your images and export without EXIF data.