Code Monkey home page Code Monkey logo

Comments (4)

bgoglin avatar bgoglin commented on May 29, 2024

This has been requested multiple times in the past but this is still a wontfix because we don't want llgal to modify the original images:

  • llgal is not a graphical image modification tool, people should prepare images (including fixing the orientation) before calling llgal
  • some people don't want llgal to modify their images

The reason we'd need to rotate the original images (and not only the thumbnails and scaled images) is that they can be displayed in the browser too:

  • in the slide (when scaled images are disabled), maybe CSS could help rotating there
  • as a plain image without any HTML/CSS around it, and I guess not all browsers honor EXIF orientation in that case

from llgal.

dagufri avatar dagufri commented on May 29, 2024

Thank you very much for the quick reply. I meant to add some more details but you answered my question. I understand that modifying the original images can be a problem.

A bit off topic for llgal I guess but you have a working solution that you use to rotate the original images?

  • "jpegtran -rotate 90 -trim" correctly rotates the image but loose the EXIF data.
  • "jpegtran -rotate 90 -trim -copy all" keeps the EXIF data but the image is rotated one time too many when viewing it.
  • "convert IMG -rotate 90" keeps the EXIF data but the image is rotated one time too many when viewing it.

from llgal.

bgoglin avatar bgoglin commented on May 29, 2024

I use "exiftran -ai" which seems to do the job but I never checked in details what it does :)

from llgal.

dagufri avatar dagufri commented on May 29, 2024

Okay thanks for the tip :)

I just found gem "jhead -autorot IMG" that automatically rotates the image as needed without loosing EXIF data and it updates the EXIF orientation. Works great so far.

Thanks for an awesome tool!

from llgal.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.