GithubHelp home page GithubHelp logo

jpg orientation changes about leanify HOT 5 CLOSED

jayxon avatar jayxon commented on May 14, 2024
jpg orientation changes

from leanify.

Comments (5)

JayXon avatar JayXon commented on May 14, 2024

Thanks for your report!
The image is indeed stored in landscape, you were seeing it in portrait before because there's information about orientation stored in the exif.
Take a look at the exif information of your image here: http://regex.info/exif.cgi?imgurl=http%3A%2F%2Fakb.me.uk%2FIMG_2575.jpg
In the orientation section, it tells the viewer to rotate the image 270 degree clockwise.
However, currently leanify removes exif by default, but if you use --keep-exif, the orientation keep the same.
For personal photos that you want to keep on your disk, I would recommend always keep the exif, as it may also contains information about the time the photo is taken, the camera you're using, etc. However, if you are going to post it on your website, you probably want to make it as small as possible to save your website bandwidth and make your website load faster, in addition, you might not want people to know too much detail like the location where the photo is taken.
Leanify probably should be more smart at this, e.g. keep exif if there's orientation in it, or maybe keep exif by default and provide another option to remove it.

from leanify.

Antony74 avatar Antony74 commented on May 14, 2024

Thank you very much for your response - and your insight into the curious world of file formats!

from leanify.

Antony74 avatar Antony74 commented on May 14, 2024

e.g. keep exif if there's orientation in it, or maybe keep exif by default and provide another option to remove it.

I'd probably go with "print a warning if an exif with orientation in it is removed" since that keeps everything else about the behavior of Leanify exactly as it was.

By the way, if I run Leanify without any parameters, then it displays usage information which doesn't mention the --keep-exif option.

from leanify.

JayXon avatar JayXon commented on May 14, 2024

Thanks for the suggestion, warning sounds good.
Are you sure --keep-exif is not there? It's the last option, what version are you using?

from leanify.

Antony74 avatar Antony74 commented on May 14, 2024

Sorry, my mistake. The Chocolately package is one version out of date.

leanify

from leanify.

Related Issues (20)

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.