You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! As my photo gallery has grown to 40GB, i wanted to finally run jpegoptim over it to shrink it just a bit
Took a random photo, and results were good... 3.2mb -> 1.4mb .... too good...
I realised that many of my photos have live/motion data... and I want this! But jpegoptim seems to strip it away
Here is an example:
Try to download it and view it in Google Photos (i hope github doesn't compress this), and then do same after jpegoptim (desktop-web https://photos.google.com will also work!)
Please make it not strip it away 🙏
The text was updated successfully, but these errors were encountered:
Seems like this live/motion data is simply added at the end of the JPEG image, and not part of the image.
$ ./jpegoptim -v -v -n test.jpg
Using maximum of 1 parallel threads
processing file: test.jpg
test.jpg 5 markers found in input file (total size 51146 bytes)
coding: Huffman
1944x2592 24bit N Exif,XMP,XMP,JFIF,ICC (1849570 bytes extraneous data found after end of image) [OK] 3242210 --> 1370488 bytes (57.73%), optimized.
jpegoptim 'decodes' the JPEG file and then rebuilds in from scratch, so extra data added after the end of the image will be "lost".
There is --nofix option that will cause jpegoptim to skip processing images like this, but currently there is no way to 'optimize' image and preserve data that is not part of the actual JPEG image.
I supposed it would be possible to add option to tell jpegoptim to preserve any "extraneous" data after end of the JPEG image in the input file...
I guess the new Ultra HDR Image format form Google is the next candidate,
it's basically a JPEG image with extensions.
It looks like a normal JPEG file and use the JPG file extension by default.
The extentional HDR data will be lost after the optimisation processing done by jpegoptim, because the additional data does not conform to the original JPEG specifications.
Hi! As my photo gallery has grown to 40GB, i wanted to finally run
jpegoptim
over it to shrink it just a bitTook a random photo, and results were good... 3.2mb -> 1.4mb .... too good...
I realised that many of my photos have live/motion data... and I want this! But jpegoptim seems to strip it away
Here is an example:
Try to download it and view it in Google Photos (i hope github doesn't compress this), and then do same after jpegoptim (desktop-web https://photos.google.com will also work!)
Please make it not strip it away 🙏
The text was updated successfully, but these errors were encountered: