ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: hanfdidanfti on October 04, 2012, 04:39:45 PM

Title: Changing Thumbnail Preview of JPG
Post by: hanfdidanfti on October 04, 2012, 04:39:45 PM
Hello there,

while chatting on whatsapp with my phone i recognize that they are some trending pictures where the preview of the picture is mostly a naked nice girl. When you open the picture some monkey or some hairy dude appears. I read that this is because whatsapp takes the exif data, if there is some of it, instead creating a thumbnail. Its very funny and me as a completly unknown terminal or command line macuser wondering how can i easily use exiftool to create some of these pictures with my own jpg. Anybody have a idea? I couldnt find anything because i guess its a silly thing.
Title: Re: Changing Thumbnail Preview of JPG
Post by: Phil Harvey on October 04, 2012, 07:01:42 PM
You can embed a different thumbnail in a JPEG image with this command:

exiftool "-thumbnailimage<=thumb.jpg" image.jpg

This will embed a file called "thumb.jpg" as the thumbnail inside "image.jpg".  The thumbnail should be 160x120 pixels.

- Phil
Title: Re: Changing Thumbnail Preview of JPG
Post by: mlearmonth on July 27, 2019, 11:43:35 PM
I can't seem to get this to work. I have the following files in the root directory of my E: drive and run the program from there:

exiftool.exe
thumb.jpg
image.jpg

And when I run the command: exiftool "-thumbnailimage<=thumb.jpg" image.jpg
I get the following response in the Exiftool LOG:

======== exiftool
======== image.jpg
    1 image files updated
    1 files weren't updated due to errors
Error: File not found - exiftool
<-END-

What am I doing wrong?
Title: Re: Changing Thumbnail Preview of JPG
Post by: Hayo Baan on July 28, 2019, 02:57:11 AM
Are you running this from a GUI? If so, remove exiftool from the command. Phil's command is for using exiftool directly from the command-line, in a GUI you would need to leave off the command-name (exiftool) itself.
Title: Re: Changing Thumbnail Preview of JPG
Post by: StarGeek on July 28, 2019, 03:18:04 AM
The error you list shows that exiftool is looking for a file named "exiftool", which doesn't make sense if you're running from the command line.

It does say that an image file has been updated.  Have you checked the image to see if the thumbnail has been updated?
Title: Re: Changing Thumbnail Preview of JPG
Post by: Mesut on October 04, 2019, 12:18:38 PM
do this first:exiftool -b -ThumbnailImage image.jpg > thumbnail.jpg
after : exiftool "-ThumbnailImage<=thumbnail.jpg" anyimage.jpg up command for windows
or code below (for perl running on windows ) : exiftool.pl "-ThumbnailImage<=popo-2.jpg" askim.jpg

Windows or other software does not show results, My suggestion is to look at the results using the software xnview

Thank you so much to Phil who made this amazing the software.

[PH Edit: Removed quotes from some things that shouldn't have been quoted.]