Imagick (Imagemagick) Defect in Debian Sqeeze (6)

我是研究僧i 提交于 2019-12-21 19:39:49

问题


I have huge troubles running my cakephp application now.

after upgrading vom lenny to squeeze (even tried a complete reinstall of sqeeze) imagick is so incredible slow that it simply shuts down my server. I have several image galleries which use imagick to create thumbs.

50 images needed less then 30 seconds (2000x1200 pixel) on lenny. NOW it needs more than an hour.. Processor is at 100% for the complete time making other processes like apache very slow. is this a known bug in squeeze? it is making me crazy!

I even tried to run the application of other servers. a friend gave me access to his archlinux + nginx. fast as a rocket (less then 23 seconds). it is definitly a sqeeze problem.

i simply installed it via "apt-get install imagemagick" and added the php extension "php-imagick"

details: Version: ImageMagick 6.6.0-4 2010-11-16 Q16


回答1:


One solution seems to be to downgrade imagemagick:

http://howto.at/2011/08/02/super-speed-up-virtuozzo-with-debian-6-and-imagemagick/

There's a debian bug (#638409) opened about this, seems to be caused by imagemagick's use of openmp:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638409

Since we have this problem ourselves, we will be trying both solutions shortly :)




回答2:


As mentioned by cosimo above it is a known but. I found an elegant solution by recompiling the packages without the openmp-extension according to A.M. Popa (for Debian) and J. Jarolim (for Ubuntu). Assuming you had installed imagemagick before:

$ apt-get buil-dep imagemagick
$ apt-get source imagemagick
$ cd imagemagick-6.5.7.8/
$ sudo vi debian/rules

add ~ line 39 --disable-openmp:

--disable-openmp

Rebuild the package and reinstall:

$ dpkg-buildpackage -b
$ cd ..
$ dpkg -i libmagickcore3* libmagickwand3*



回答3:


Also try GMagick, minimal modifications on source and cool new features.



来源:https://stackoverflow.com/questions/6817599/imagick-imagemagick-defect-in-debian-sqeeze-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!