ExifTool Forum

ExifTool => Newbies => Topic started by: clem on April 20, 2023, 06:31:15 PM

Title: Using exiftool to create / scale embedded thumbnails?
Post by: clem on April 20, 2023, 06:31:15 PM
Hello,

I know exiftool can extract embedded thumbnails... but can that be chained within exiftool's Swiss-army-knife of tools to extract and scale / reduce thumbnails to an arbitrary size? i.e. say the size of a 128x128 pix jpg?

thx!  ;D
Title: Re: Using exiftool to create / scale embedded thumbnails?
Post by: Phil Harvey on April 21, 2023, 06:52:14 AM
ExifTool doesn't do image manipulations.  It will only extract the embedded thumbnails in their original size.

- Phil
Title: Re: Using exiftool to create / scale embedded thumbnails?
Post by: clem on April 21, 2023, 09:58:12 AM
Thank you for the fast reply! :-)

So...

Title: Re: Using exiftool to create / scale embedded thumbnails?
Post by: Phil Harvey on April 21, 2023, 11:26:30 AM
1. You can pipe the thumbnail to another application like this:

exiftool -thumnailimage -b FILE | some_other_app

...but the other app must have the ability to read the image from the standard input.

2. The BigImage Composite tag in the example config file (https://github.com/exiftool/exiftool/blob/master/config_files/example.config) gives a way to extract the largest preview image.  (Not including the thumbnail.)

- Phil