Using exiftool to create / scale embedded thumbnails?

Started by clem, April 20, 2023, 06:31:15 PM

Previous topic - Next topic

clem

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

Phil Harvey

ExifTool doesn't do image manipulations.  It will only extract the embedded thumbnails in their original size.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

clem

Thank you for the fast reply! :-)

So...

  • can I pipe the extracted jpeg to another process, say the Mac's built in 'scriptable image processing system' to do scaling etc. or will exiftool only generate the file after which I can do something with it with another command?
  • how can I get exiftool to extract the largest preview since sometimes there are more than 1 JPEG previews

Phil Harvey

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 gives a way to extract the largest preview image.  (Not including the thumbnail.)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).