thumbnail extraction

Started by dedef, January 17, 2014, 05:50:22 PM

Previous topic - Next topic

dedef

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

Alan Clifford

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


Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

dedef

The images are in the same directory as exiftool.

Now, it works.

Thanks.