add lossless (jpg) rotation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IntiPunku |
Fix Committed
|
Critical
|
Mark Baas |
Bug Description
The current rotation of Intipunku creates a low-quality and reduced copy of the jpg file, and eventually stores the original in a subdirectory (originals).
I would like the rotations to keep the following from original:
- the image size
- the jpg (or other png...) compression level
- the metadata (currently completely blanked out)
- the creation and modification timestamps of original file
The above options (e.g. jpg compression level) could eventually be configured in preferences... but should to me be the default behavior.
This has been tested by rotating a 2800x2100 jpg image (original file size of 1.5Mb), hitting "rotating right" makes a copy into an "originals" subdirectory to where the file is located (thanks for keeping this original at least!) and creates a reduced copy of 2100x2800 (ok) of 305Ko (much less!).
Thanks.
PS: a possible alternative could be to take into account the "image - orientation" metadata of the images to orient them accordingly... and just update this tag when the "rotate" buttons are hit... but I don't know if you like this approach, nor if it works for other formats than jpg.
Hi Bertrand, you are right there is some loss in jpeg saving, not just rotating. I am going to look at it. However you also state that the metadata gets blanked out. This is a serious bug, since i have been spending a long time making sure this works. Please report a separate bug for this issue and provide the output of intipunku. I will also need the output of: "exiv2 -Pkycv <path to image>. You can also simply post the image.