2023-11-19 - ExifTool 20th anniversary! Version 12.70 released

Main Menu

How to remove thumbnail from a jpeg

Started by Archive, May 12, 2010, 08:54:38 AM

Previous topic - Next topic


[Originally posted by jbphoto on 2009-07-14 10:09:17-07]

The pictures (jpg) I want to put on my website are about 60Ko with a 20Ko thumbnail inside!!!

How can I remove this thumbnail, but keeping Exif and IPTC info (wich are displayed on my site:" target="_blank">

Thanks for your help



[Originally posted by exiftool on 2009-07-14 11:00:47-07]

To remove just the thumbnail:

exiftool -thumbnailimage= FILE

where FILE is one or more file or directory names.

But doing this will leave behind some tags like the thumbnail
resolution which are no longer necessary.  So if you are dealing
with JPEG images a better method would be to delete all IFD1
tags, which will remove the Thumbnailimage and all assocated
tags.  (IFD1 is the thumbnail IFD in JPEG images.):

exiftool -ifd1:all= -ext jpg FILE

Here I have added "-ext jpg" to be sure only JPEG images
are processed if FILE is a directory.  This is important
because you don't want to delete IFD1 from other image formats.

- Phil


[Originally posted by jbphoto on 2009-07-14 11:41:11-07]

Hi Phil,

exiftool -ifd1:all= -ext jpg FILE  seems to work perfectly my test file went from 57.584b to 42.702b for jpg to web it's about 15% great!!

the more I use Exiftool, the more I like it!!

I have another question about reducing the size of jpg for the web but I'll open a new thread.



[Originally posted by storhaug on 2009-08-08 15:17:53-07]

When removing the preview-image, is the parameter
good enough, or is it best practice to remove related tags which are unnecessary without the preview-image?


[Originally posted by exiftool on 2009-08-11 11:27:17-07]

In a JPEG image, tags related to the PreviewImage are usually
stored in the makernotes, so in general they can not be
deleted, so -previewimage= is all you can do.

- Phil