Author Topic: Extract all types of thumbnails from a single image  (Read 7746 times)

gbartoli

  • Newbie
  • *
  • Posts: 5
Extract all types of thumbnails from a single image
« on: May 05, 2016, 04:36:00 AM »
Hi,
First of all, I would like to congratulate to Phil for making such a powerful and flexible tool for image analysis, I'm using it on a daily basis for a number of projects on digital image forensics. 8)

From the exiftool documentation, I found this command that extracts the embedded data corresponding to ThumbnailImage tag and write to the output file
Code: [Select]
exiftool -b -ThumbnailImage image.jpg > folder/thumbnail.jpg
However, I have some images that contain thumbnails inside different tags, like PreviewImage, so I would like to run a single command that extracts all kinds of thumbnails from a single image and puts them into a specified folder, preferably appending the tag names like image_ThumbnailImage.jpg, image_PreviewImage.jpg, etc...

I found also this:
Code: [Select]
exiftool -a -b -W %d%f_%t%-c.%s -preview:all DIRbut it works on all images in the folder DIR, I couldn't find a way to make it work on a single image while writing thumbnails in a specified folder.

Am I missing something?

Thanks in advance.
-= Guido =-

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 18370
    • ExifTool Home Page
Re: Extract all types of thumbnails from a single image
« Reply #1 on: May 05, 2016, 07:33:38 AM »
Hi Guido,

You are very close with the command you found.  I think that a simple modification to specify the output folder name instead of using %d should give you what you want:

exiftool -a -b -W FOLDERNAME/%f_%t%-c.%s -preview:all FILE

- 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 ($).

gbartoli

  • Newbie
  • *
  • Posts: 5
Re: Extract all types of thumbnails from a single image
« Reply #2 on: May 05, 2016, 08:03:05 AM »
Yes, that is exactly what I wanted, thanks Phil! :)
-= Guido =-