ExifTool Forum

ExifTool => Newbies => Topic started by: surbhi on April 21, 2015, 08:18:54 AM

Title: Extract thumbnail
Post by: surbhi on April 21, 2015, 08:18:54 AM
I want to extract thumbnail from an image named 1.JPG which is in a folder 'pics' at location C:\Users\sur\Desktop\pics\.

Now I am in folder pics, and trying to extract the thumbnail of 1.JPG, but a windows open with written "File not found: 1.JPG" and close fast. And an image with 0 bytes appears in my folder pics with name thumnail.jpg...

The command looks like this, in my cmd:

C:\Users\sur\Desktop\pics>exiftool -b -ThumbnailImage 1.JPG > thumbnail.jpg

The image 1.JPG has a thumbnail, which I confirmed by viewing exifdata of the image on a website http://regex.info/exif.cgi.

What am I doing wrong?
Title: Re: Extract thumbnail
Post by: Phil Harvey on April 21, 2015, 08:22:17 AM
This sounds just like your other problem (https://exiftool.org/forum/index.php/topic,6445.0.html).  You need to open the cmd.exe window first, then type the exiftool command there.

- Phil
Title: Re: Extract thumbnail
Post by: surbhi on April 21, 2015, 08:23:43 AM
Yes, thats what I am doing. I have cmd open, and then In cmd I am in folder pics and writing the command exiftool -b -ThumbnailImage 1.JPG > thumbnail.jpg there...
Title: Re: Extract thumbnail
Post by: surbhi on April 21, 2015, 08:40:57 AM
Attached a screenshot of what I am doing:
Title: Re: Extract thumbnail
Post by: Phil Harvey on April 21, 2015, 08:43:34 AM
No "file not found" message.
Title: Re: Extract thumbnail
Post by: surbhi on April 21, 2015, 08:45:55 AM
Yes, its not in screenshot, because when I write command "exiftool -b -ThumbnailImage 1.JPG > thumbnail.jpg", and press enter, a new cmd window opens on which its written that file not found:1 JPG. That window close very fast itself, so I am not able to take a screenshot of that.
Title: Re: Extract thumbnail
Post by: Phil Harvey on April 21, 2015, 08:49:14 AM
I don't understand that.  It should not open another window.  Did you ever solve you other problem?  It is the same problem with this command.

How did you launch cmd.exe?

See this thread (https://exiftool.org/forum/index.php/topic,4888.0.html) for some help.

- Phil
Title: Re: Extract thumbnail
Post by: surbhi on April 21, 2015, 09:01:16 AM
Thank, now it works :) The problems was that I changed the compatibility of exiftool.exe and changed the setting to run it as administrator, by looking at some solutions on the forum. But now I changed it back, and it works now :)
Title: Re: Extract thumbnail
Post by: surbhi on April 22, 2015, 02:48:44 AM
Just wanted to say thanks for making such a nice tool Phil, and also for providing great support. Many thanks  :)