catimg icon indicating copy to clipboard operation
catimg copied to clipboard

Suggestion: Rotate image according to Orientation exif tag

Open paternal opened this issue 8 years ago • 1 comments

Consider the following image (which has an orientation exif tag).

This way up!

  • A software reading this orientation tag (for instance, Firefox — just click on the image above) displays the text horizontally (with the correct orientation).
  • However, catimg (and the github inline preview) ignores this orientation tag, and displays it vertically.

It would be nice if catimg could rotate the image according to this orientation tag.

Thanks for your work! -- Louis

paternal avatar May 21 '17 19:05 paternal

hey, thanks for the kind words! 🙂 Yeah, that would be great, I think stb_image reads tags by default but I'm not sure of it. I'm open to PRs for this

posva avatar May 21 '17 22:05 posva