Imagemagick not updating thumbnail

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
aayushagra
Posts: 3
Joined: 2017-06-13T21:16:54-07:00
Authentication code: 1151

Imagemagick not updating thumbnail

Post by aayushagra »

Hello,

I'm working with imagemagick to make some modifications to an image and produce a new image. Problem is, even after the modifications windows still shows the old thumbnail on the new jpeg file. Is there any way to fix this?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Imagemagick not updating thumbnail

Post by fmw42 »

Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at viewtopic.php?f=1&t=9620

For novices, see

viewtopic.php?f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/

Depending upon your processing commands, ImageMagick may not reset the thumbnail preview. I see that happen when writing over some old images. Have you tried saving to a new output, then renaming it back to the original with our OS?
aayushagra
Posts: 3
Joined: 2017-06-13T21:16:54-07:00
Authentication code: 1151

Re: Imagemagick not updating thumbnail

Post by aayushagra »

fmw42 wrote: 2017-06-14T23:15:14-07:00 Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at viewtopic.php?f=1&t=9620

For novices, see

viewtopic.php?f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/

Depending upon your processing commands, ImageMagick may not reset the thumbnail preview. I see that happen when writing over some old images. Have you tried saving to a new output, then renaming it back to the original with our OS?
I'm using 7.0.6 and building a script that needs to work on both Windows and Ubuntu.

I managed to fix this by simply using -strip to delete the EXIF data
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Imagemagick not updating thumbnail

Post by fmw42 »

Sounds like a reasonable solution, since -strip removes the xmp profile, which I believe is where the thumbnail is stored. You could try +profile "xmp" rather than -strip.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Imagemagick not updating thumbnail

Post by snibgo »

aayushagra wrote:... even after the modifications windows still shows the old thumbnail on the new jpeg file. Is there any way to fix this?
No. IM doesn't update thumbnails.
snibgo's IM pages: im.snibgo.com
Post Reply