Thumbnails don't show in webpage

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
ahagen

Thumbnails don't show in webpage

Post by ahagen »

I've used mogrify (version 6.5.4-4 2009-07-21 Q16) to create thumbnails from an .psd file. The thumbnail creation works fine, although the file format seems to be invalid. This is the command I use:

mogrify.exe -format jpg -thumbnail 96x96 \work\*.*

When I use the thumbnail to be displayed on a website, it shows as a red X. However, if I open and save the thumbnail with Paint the image is displayed properly.

Can anyone help me to get proper, displayable thumbnails or give me some clue on what is causing this problem?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Thumbnails don't show in webpage

Post by fmw42 »

try

mogrify.exe -path fullpathto\work\ -format jpg -thumbnail 96x96 *.*

see http://www.imagemagick.org/Usage/basics/#mogrify
ahagen

Re: Thumbnails don't show in webpage

Post by ahagen »

Thanks for the reply. Tried it with the settings your specified and in the listed sequence, however the jpg still does not display. I also tried converting it to png and that works fine.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Thumbnails don't show in webpage

Post by fmw42 »

might your jpeg be a JPG2000 file. if so you need the jasper delegate library installed
Post Reply