"Unable to make thumbnail" strikes again, and agai
dberansky
Joined: 2002-08-16
Posts: 19 |
Posted: Wed, 2004-05-19 01:05 |
Is there a comprehensive list of all the possible causes of "Unable to make thumbnail"? From what I gather it's a pretty generic message masking a real problem. I just upgraded to 1.4.2 running under a windows 2000 server as a Postnuke module. First, I was having the above error when trying to add photos from the server's local directory (ftping them first). The problem turned out with the album's folder name (I was using "Rename folder" to change it's name instead of changing it through the properties). After I realized that and created a new nested album the proper way, I was able to add photos from a local directory with no problems. But now this error comes up when I try to upload the photos via gallery's web interface. I can see a temporary file show up in c:\temp during processing. I know that all of my utility paths setup properly and permissions are set because I can add photos from the server's local directory (see paragraph above). So what could be the cause of the error now? ---- |
|
Posts: 19
oh, and here's the debug output:
notice the complete lack of any error messages. WTF is going on?!!
Posts: 19
i've finally solved the problem myself. here's what it was.
I've traced it down to util.php->compress_image(). I'm using ImageMagick and the function was generating the following command to do the compression:
c:\ImageMagick\convert -quality 95 -size 150x150 +profile '*' c:\albums\album57\aca.jpg -geometry 150x150 c:\albums\album57\aca.thumb
when I tried to run this from the command line, I got the following error (notice, that this error did not show up in the html output):
obviously, the Windows version of ImageMagick's conert was confused by the single quotes around * (which must be present under Unix/Linux to prevent * from expanding to file names). Once I removed the quotes, everything else started working just fine.
seems like a bug.
Posts: 8194
What version of ImageMagick are you using?
Posts: 18
OK, I think this might be part of the problem I am having. Can you please tell me the steps you did to remove the ''? I can't find the file it is in.
Thank you!
Posts: 19
6.0.1
Posts: 19
util.php is in the gallery's home directory. Open it up and search for '*' (quote, start, quote)