ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: esancha on June 30, 2013, 03:19:39 AM

Title: Re-create thumbnail after crop image
Post by: esancha on June 30, 2013, 03:19:39 AM
After cropping a photo and import to the Exif data of the original photo, the included thumbnail does not correspond with the cropped photo.

I've seen methods to import a thumbnail to an image, but, is there some method of Exiftool to recreate the thumbnail of an image?

Thanks a lot.

Emilio
Title: Re: Re-create thumbnail after crop image
Post by: Phil Harvey on June 30, 2013, 06:29:30 AM
Hi Emilio,

Sorry, no.  ExifTool does not do image manipulations.

- Phil
Title: Re: Re-create thumbnail after crop image
Post by: esancha on June 30, 2013, 01:37:48 PM
Many Thanks Phil

Maybe can someone tell me any application with which to create the thumbnail of the cropped image?

Thanks again.

PS: I used to use Exiftool to those things but I'm afraid that it is not too appropriate.
Title: Re: Re-create thumbnail after crop image
Post by: Phil Harvey on June 30, 2013, 07:57:17 PM
I use ImageMagick's "convert" utility to do image manipulations like this.  Once you have generated the thumbnail, ExifTool can insert it into the JPEG for you.

- Phil
Title: Re: Re-create thumbnail after crop image
Post by: evilaro on July 01, 2013, 07:36:15 AM
Hi Phil:

I wonder if this ImageMagick can be used
in the command line... in Windows?.

Among the so many different version of this program there is one
for windows... but I can not make it work...

Any advice.

Thanks
The other Emilio ;)




Quote from: Phil Harvey on June 30, 2013, 07:57:17 PM
I use ImageMagick's "convert" utility to do image manipulations like this.  Once you have generated the thumbnail, ExifTool can insert it into the JPEG for you.

- Phil
Title: Re: Re-create thumbnail after crop image
Post by: Phil Harvey on July 01, 2013, 09:57:43 AM
Sorry, I haven't tried ImageMagick in Windows.  Maybe someone else here has experience with this.

- Phil
Title: Re: Re-create thumbnail after crop image
Post by: esancha on July 01, 2013, 12:33:39 PM
Thanks Phil  :D, Saludos tocayo ;)

I'll try mageMagick.
Title: Re: Re-create thumbnail after crop image
Post by: StarGeek on July 02, 2013, 04:10:38 PM
To do this on a single file, you could use this command (replace <file> with the full path to the file):
convert -thumbnail 100x100 -quality 80 -strip <file> jpeg:- | ExifTool "-ThumbnailImage<=-" <file>

or create a .bat file with this
convert -thumbnail 100x100 -quality 80 -strip %1 jpeg:- | ExifTool "-ThumbnailImage<=-" %1

For a bigger/smaller thumb, change the "100x100" to whatever size you want the thumb to be bounded by.  Add other options  into the ExifTool part as you need. 

For processing multiple files, things would get a bit tricky, as ImageMagick's Convert command will only operate on single files.  I see bat file examples where you could do a directory like this, but I don't know enough about windows bat files to tell if you could make one where you could pick a few files out of a directory or not.