Windows 2000 Imagemagick locks up Apache

Having trouble installing serendipity?
Post Reply
ChrisZ
Posts: 4
Joined: Wed May 04, 2005 8:10 pm

Windows 2000 Imagemagick locks up Apache

Post by ChrisZ »

I have the Serendipity installed and working great.. Although I am having a serious problem getting it to work properly with ImageMagick though.

This is Window 2k remember. Running s9y 0.8 php 4.3.10 with Apache 2.0.53, and trying imagemagick 6.2.2

convert.exe is in the path, it is copied to c:\convert.exe and in the default installation directory of

C:\Program Files\ImageMagick-6.2.2-Q16\convert.exe

In Serendipity admin config I have
Use ImageMagick set at yes
Path to convert library set to /convert.exe
Thumbnail suffix set to serendipityThumb
Thumbnail dimensions set to 110

When I do a rebuild thumbs it creates the thumbnail but appears to lock apache up. I have to restart the service inorder to play around anymore.

I feel like I am close to getting this whipped but also feel like some assistance might be in order.

Thanks for your time.

Chris
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Windows 2000 Imagemagick locks up Apache

Post by garvinhicking »

Have you tried entering C:/convert.exe maybe?

I'm sadly not that good on WAMP installations. Maybe you need to use PHPsGDLib isntead of ImageMagick...?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ChrisZ
Posts: 4
Joined: Wed May 04, 2005 8:10 pm

Re: Windows 2000 Imagemagick locks up Apache

Post by ChrisZ »

using c:/convert.exe yielded the same results. it makes the thumb but locks apache.

Also I am only testing with a single image file.

After restarting apache and going back into the Serendipity admin config under media there is still no thumb displayed even though it was created. But if I use the rotate buttons the image gets rotated but not displayed and a convert.exe has generated errors window pops up.

Maybe my version of convert.exe is just giving problems.. Could someone who has a working windows version of convert.exe email it to me at chrisz@richway.com so I could give that a try

Thanks
Chris
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Windows 2000 Imagemagick locks up Apache

Post by garvinhicking »

Yes, I think it is a problem of your convert.exe - locking up Apache is pretty bad. This is also the reason you don't see any images in Serendipty - after the thumbnails would have been created, s9y would create database entries, which it can't if your process stalls :)

Did you try to execute c:\convert.exe via DOS commandline and see if it crashes?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ChrisZ
Posts: 4
Joined: Wed May 04, 2005 8:10 pm

Re: Windows 2000 Imagemagick locks up Apache

Post by ChrisZ »

I have tried from the command line and everything seems to work just fine. I also downloaded an older ImageMagick version 5.4.6. With the older binary I was able to perform the image rotations in Serendipity with out errors but I still have the same problem with locking when doing thumbnail updates..

Where in the code does it do the actual thumb resizing . I feel it is an error with the way convert.exe is called. In my Apache error.log it said someting about unable to find image..jpg

So I am curious about the double period in the file name.

Chris
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Windows 2000 Imagemagick locks up Apache

Post by garvinhicking »

it should use image.serendipityThumb.jpeg, that suffix is configured in serendipity configuration somewhere I think.

The execution is done in include/functions_images.inc.php.

Search for $serendipity['magick'] :)

Regards,Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ChrisZ
Posts: 4
Joined: Wed May 04, 2005 8:10 pm

Re: Windows 2000 Imagemagick locks up Apache

Post by ChrisZ »

After more experiementing I found that imagemagick works exactly like it is suppose to unless you manually add files to the upload folder and then ask it to rebuild the icons. That is when it craps out so I think that could be considered an official bug.

Let me know

Chris
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Windows 2000 Imagemagick locks up Apache

Post by garvinhicking »

The files you added manually to your folder, which permissions and filenames do those files have?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply