Page 1 of 1
Windows 2000 Imagemagick locks up Apache
Posted: Wed May 04, 2005 8:28 pm
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
Re: Windows 2000 Imagemagick locks up Apache
Posted: Wed May 04, 2005 9:42 pm
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
Re: Windows 2000 Imagemagick locks up Apache
Posted: Thu May 05, 2005 12:10 am
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
Re: Windows 2000 Imagemagick locks up Apache
Posted: Thu May 05, 2005 1:10 pm
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
Re: Windows 2000 Imagemagick locks up Apache
Posted: Thu May 05, 2005 4:07 pm
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
Re: Windows 2000 Imagemagick locks up Apache
Posted: Thu May 05, 2005 8:30 pm
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
Re: Windows 2000 Imagemagick locks up Apache
Posted: Fri May 06, 2005 11:50 pm
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
Re: Windows 2000 Imagemagick locks up Apache
Posted: Mon May 09, 2005 2:18 pm
by garvinhicking
The files you added manually to your folder, which permissions and filenames do those files have?
Regards,
Garvin