"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?

----
Gallery URL (optional but very useful): http://cactus.dembel.org/modules.php?op=modload&name=gallery&file=index (not in english)
Gallery version: 1.4.2
Apache version: 1.3.24
PHP version (don't just say PHP 4, please): 4.2.1
Graphics Toolkit: ImageMagick
Operating system: Windows NT 5.0 build 2195
Web browser/version (if applicable): WinIE 6.0.2800[/code]

 
dberansky

Joined: 2002-08-16
Posts: 19
Posted: Wed, 2004-05-19 04:17

oh, and here's the debug output:

Quote:
Processing status...

- Adding P1010002.JPG
Resizing/compressing original image
No resizing required
File c:/data/websites/cactus/albums/album57/P1010002.jpg type 2.

Executing:

c:\data\websites\cactus\ImageMagick\convert -quality 95 -size 150x150 +profile '*' c:\data\websites\cactus\albums\album57\P1010002.jpg -geometry 150x150 c:\data\websites\cactus\albums\album57\P1010002.thumb.jpg

Results:
none

Error messages::

Status: 1 (expected 0)
Error: Unable to make thumbnail (0)!
Need help? Look in the Gallery FAQ No email sent as no valid email addresses were found

notice the complete lack of any error messages. WTF is going on?!!

 
dberansky

Joined: 2002-08-16
Posts: 19
Posted: Fri, 2004-05-21 00:06

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):

Quote:
convert.exe: no profile `'*'' found

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.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2004-05-21 00:30

What version of ImageMagick are you using?

 
kosmonaut

Joined: 2004-05-14
Posts: 18
Posted: Fri, 2004-05-21 01:03
dberansky wrote:
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):

Quote:
convert.exe: no profile `'*'' found

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.

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!

 
dberansky

Joined: 2002-08-16
Posts: 19
Posted: Fri, 2004-05-21 03:17
alindeman wrote:
What version of ImageMagick are you using?

6.0.1

 
dberansky

Joined: 2002-08-16
Posts: 19
Posted: Fri, 2004-05-21 03:21
kosmonaut wrote:
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!

util.php is in the gallery's home directory. Open it up and search for '*' (quote, start, quote)