Comment 8 for bug 1679442

Revision history for this message
Daniel Stiefelmaier (mail-stiefelweb) wrote :

Also happens with all images from my Pentax camera.
It seems to be the embedded thumbnail.

NOT a fix: recompressing, or removing random EXIF data
gm convert IMG_20161206_163501.jpg -size 10% small.jpg
exiv2 -M"del Exif.Photo.MakerNote" small.jpg

A fix: stripping ONLY the thumbnail
exiv2 -dt *.jpg

However, diff reveals that this moves the metadata section from the front to the back of the file.
So, the real issue might be either the size or the position of the meta data.

Also NOT a fix: stripping thumb from front and appending it to the end
exiv2 -et test.jpg # export to test-thumb.jpg
exiv2 -dt test.jpg # delete thumb
exiv2 -it test.jpg # import from test-thumb.jpg

However, ALSO A FIX: making the thumb smaller:
cp test-thumb.jpg test-thumb.org.jpg
gm convert test-thumb.org.jpg -quality 30% test-thumb.jpg
exiv2 -dt test.jpg # delete old thumb first - it DOES make a difference
exiv2 -it test.jpg

The largest thumbnail that worked was with 43% quality, which is very close to 10KiB.