So, I just installed zenphoto for my roommate and they love it but they ran into a small issue of BMP images not being displayed, at least not the thumbnail. I narrowed down the issue, I think, to the 'imagick' extension not being installed/enabled/available on the server. So, I contacted my hosts support desk, Lunarpages, and inquired about having that enabled/installed on the server I am hosted on. I was informed in the reply that imagick is not available on any of their shared hosting servers, unless I want to shell out for their Dedicated or VPS services.
My main question here is this. Is imagick some type of security risk or very server resource intensive?
I'm mainly wondering this because I've noticed in the past year that Lunarpage has become very nickle & dimey and I just can't figure why this would be some type of restricted extension for whatever reason, which I'm still waiting on a reply from the Lunarpages support team to explain.
Frustrated...
Comments
@twizted: Server configurations are quite different on hosts. I would recommend to look for another one if this one does not match your requirements.
Main difference between the two is the way batch-add is being done: when using GD, one image after the other is processed, which is good in terms of server load. Drawback is that you might have issues resizing larger pics (both in terms of dimensions and filesize), as you're limited by the memory assigned to PHP.
ImageMagick on the other hand is quite resources-hungry, and it will start a separate process for each pic that needs to be resized during batch-add, which can bring the server down."
I had ImageMagick installed on a server I managed I love the speed but I ended up removing it because every process that need to used had the potential to bring the server to 99% cpu utilization... not a good idea when its shared hosting.
http://www.zenphoto.org/news/problems-with-albums-and-images#workaround-2-use-imagick-instead-of-the-gd-libary
As for changing the info I am not sure the requirements are different from server to server. I know its a nice alternative when it works and the server can handle the load.
ImageMagick is a better solution hands down I just know it can be a hog at times.
-------------------------------------------
Just Host Web Hosting Help
ImageMagick
Problem:
Is ImageMagick installed on my account?
Solution:
ImageMagick is installed on all of our hosting servers, located at:
/usr/bin/convert
You can check versions with the following command:
convert -version
The ImageMagick/MagickWand extension for PHP is also available all servers. To invoke it, verify you have the following variable set in your php.ini:
extension_dir = '/usr/lib64/php/modules'
Then, add the following line to your php.ini:
extension=magickwand.so
For further information on configuring your account with the php.ini file, please see the article How do I change the PHP environment for my site with php.ini?.
Oh well I screwed :P
I've setup some resource limits in lib-Imagick.php that prevents all my memory from being consumed but it takes too much time to resize images. Using GD is almost instantly but the resized images are poor in quality..
@jphilbert - The Imagick PHP extension and magickwand use the same functionality under the hood, but it's not interchangeable, as far as I know.
@jalves - Setting resource limits will slow your server down if the limits are exceeded. When you set a memory limit, ImageMagick will begin to use swap space on the hard disk instead. RAM is far, far faster than disk speed, so whenever memory runs out on your system, ImageMagick will simply continue processing on the disk, thus causing slow performance.
thank you for your answer.
yes i know that.. but if i don't have limits all my memory is consumed and my server becomes unresponsive... i had to restart some times to get it back.
My galleries have 100 thumbs by page and i'm working with hi-res pictures (4000pxX3000px). Do you think it is too much? But even with 4 thumbs by page it gets too much time.. GD is much faster.. Could i have something wrong? I can't find anything to solve the problem..
Those images are quite large though and will consume much memory and begin to use swap with Imagick, regardless of resource limits.
FYI, this github issue should help with Imagick memory consumption, so it could be improved in the coming Zenphoto releases: http://github.com/zenphoto/zenphoto/issues/418
Sorry i didn't noticed it before!
Just removed my resource limits and made the changes suggested in the link.
It is now faster than ever and perfect thumbs! You just saved my day! Thank you once again!
This should be committed for the next zp build!