When I transferred my Drupal installation from the development server (which is running under Win XP and where I didn't have any problem) to the production server on a Debian-machine I encountered the problem, that I could not upload images using the ImageMagick-toolkit, because the Image module told me that it is unable to create the thumbnails.

Some debugging led me to the result, that the first execution of convert (from the original size to the maximal allowed size) went well, but the command proc_close($h) in line 182 of the image.imagemagick.inc returned "-1" instead of "0". So the Image module assumed that the convert was not done and the next steps failed.

I found out, that all is ok, if you commend out the lines 160-162 and 164-167.

Well, this is a quick hack. But I have no clue, what is causing the problem - especially as this problem occurs only on the Debian machine.

In http://www.imagemagick.org/pipermail/magick-users/2007-March/019311.html I have read that it might help to add –regard-warnings. But I am not experienced with ImageMagick (just want to use the module) and so I leave testing this to someone who knows what he is doing.

CommentFileSizeAuthor
#2 imagetest.php_.txt688 bytessmitty

Comments

drewish’s picture

Status: Active » Postponed (maintainer needs more info)

since you're running into the problem on your machine could you try adding that switch and see if it resolves it? if it works for you then i can test it on some other machines and make sure it doesn't break them.

smitty’s picture

StatusFileSize
new688 bytes

Hi drewish!

I tried the attached script with includes the switch. But I get "-1" as return value. Only if I commend out the two while-loops I get a "0".

sun’s picture

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)