imagmagick/netpbm

podexperfectussum

Joined: 2005-01-26
Posts: 3
Posted: Thu, 2005-01-27 19:02

I can't get imagemagick or netpbm to work with gallery. I've tried at least two different versions of each, my latest attempt was with NetPBM 10.18.4 and Imagemagick 5.5.7 Q16. I've tried it with PHP running as both an ISAPI and a CGI. I downloaded the latest version of NetPBM and ImageMagick and tried those too. I've also downloaded the netpbm binaries from the gallery download page and tried those.

I don't believe permissions to be an issue, iwam, iusr, and the network service accounts have read & execute on the php binaries, the imagemagick and netpbm binaries as well as cmd.exe. I've also added web service extensions and set them to allowed for all of the above. it almost seems like gallery doesn't want to play with windows executables, but I know that's not true because an IRC acquantance was able to get imagemagick to work properly with win32 Apache2 and gallery.

I ran gallery in buffered mode with php as an isapi and got the following when I tested imagemagick and netpbm:
http://girls.clandestineresearch.com/imagemagick.txt
http://girls.clandestineresearch.com/netpbm.txt

gallery running with php as cgi:
http://www.clandestineresearch.com/imagemagick.txt
http://www.clandestineresearch.com/netpbm.txt

in either case, the actual errors that gallery gives are similar:
http://www.clandestineresearch.com/imagemagick.png
http://www.clandestineresearch.com/netpbm.png

now, when php's running as cgi, gallery actually produces an error at the bottom of the page. it's similar for both and appears in the debug output that I linked to earlier. I have searched the forum, and I saw that others on different platforms were having similar problems, but whatever fixed it for them didn't fix it for me, which is why I'm posting.

----

Gallery URL (optional): http://girls.clandestineresearch.com & http://www.clandestineresearch.com/gallery
Gallery version: .8.11?
Webserver (with version): IIS6
Datatabase (with version): mysql 4.0.18
PHP version (eg 4.2.1): 4.3.10
phpinfo URL (optional): http://girls.clandestineresearch.com/php.php http://www.clandestineresearch.com/php.php
Graphics Toolkit(s): gd, netpbm, imagemagick
Operating system: Windows Server 2003
Web browser/version: Opera 8 Beta

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-01-29 21:36

Edit your config.php and turn on buffered debug mode like this:

$gallery->setDebug('buffered');

Then try testing your graphics toolkits again. This time, you'll get quite a lot of debug output when you get the error. Look towards the bottom of the debug output and scan backwards for anything that looks like an error, then report that here. Usually that will give us enough information to work with. If you can't understand what you're seeing, err on the side of posting more info. If it's going to be more than 30-40 lines of output, you should save it into a text file and publish it on your own website and post a link to it here (so that the forum remains readable).