ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: dedef on January 17, 2014, 05:50:22 PM

Title: thumbnail extraction
Post by: dedef on January 17, 2014, 05:50:22 PM
Hello,
I use Xindows 7.
I have a jpg file in the same directory as exiftool.exe.
I would like to extract the thumbnail.

I use this command line : "C:\Program Files (x86)\Exiftool\exiftool.exe" -b –ThumbnailImage 15160514001305_gontran.jpg > gontran.jpg  where :

... , but it doesn't work : I got File not found: 15160514001305_gontran.jpg

I need help.

Thanks
Title: Re: thumbnail extraction
Post by: Alan Clifford on January 17, 2014, 06:33:56 PM
Quote from: dedef on January 17, 2014, 05:50:22 PM
Hello,
I use Xindows 7.
I have a jpg file in the same directory as exiftool.exe.
I would like to extract the thumbnail.

I use this command line : "C:\Program Files (x86)\Exiftool\exiftool.exe" -b –ThumbnailImage 15160514001305_gontran.jpg > gontran.jpg  where :

  • C:\Program Files (x86)\Exiftool is the path to the directory
  • 15160514001305_gontran.jpg is the jpg file
  • gontran.jpg is the jpg file to create

... , but it doesn't work : I got File not found: 15160514001305_gontran.jpg

I need help.

Thanks

exiftool will be looking for 15160514001305_gontran.jpg in the current directory.  Unless C:\Program Files (x86)\Exiftool is the current directory, it won't be found.  Put the jpg in the current directory or prefix it with the path to it (if I remember correctly from msdos, the path is the path for the executable not the data).

Title: Re: thumbnail extraction
Post by: Phil Harvey on January 17, 2014, 06:54:19 PM
Alan is correct.  In your specific example, the following command should work:

"C:\Program Files (x86)\Exiftool\exiftool.exe" -b –ThumbnailImage "C:\Program Files (x86)\Exiftool\15160514001305_gontran.jpg" > "C:\Program Files (x86)\Exiftool\gontran.jpg"

But keeping the images in the Exiftool directory is not the usual thing to do.

- Phil
Title: Re: thumbnail extraction
Post by: dedef on January 18, 2014, 02:46:03 AM
The images are in the same directory as exiftool.

Now, it works.

Thanks.