Comments (5)
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.
Thank you very much for your response - and your insight into the curious world of file formats!
from leanify.
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.
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.
Sorry, my mistake. The Chocolately package is one version out of date.
from leanify.
Related Issues (20)
- wasm support
- Recursive compression of images within epub files HOT 3
- How can I restrict specific files or file types from being optimized? HOT 2
- Please release a new version. HOT 5
- LossLess JPEG optimization? HOT 2
- fatal error: 'stdio.h' file not found HOT 1
- Building from source fails HOT 5
- `Map file error: No such device` using mergerFS HOT 2
- [Bug Report]heap-buffer-overflow in function LeanifyFile():leanify.cpp:140 HOT 3
- Add SECURITY.md HOT 5
- [Bug]out-of-memory in function get_mutable_buffer():/pugixml.cpp:2051
- pixel per inch HOT 2
- make error: lib/LZMA/LzmaEnc.c:2996:19: error: storing the address of local variable ‘outStream’ in ‘p_16->rc.outStream’ [-Werror=dangling-pointer=] HOT 1
- Cflags issue on Apple M1 (ARM) HOT 3
- Out of memory error when compiling HOT 10
- [NOISSUE] Was there previously a GUI version called Leanify++? HOT 1
- Is arm64 / aarch64 architecture supported? HOT 1
- Is there a way that to both keep Photo's EXIF and remove Location? HOT 2
- Need periodic releases so that this excellent tool can be picked up by linux/arch repos. HOT 1
- Bump version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leanify.