Page 1 of 1

ImageMagick crashing Linux Server

Posted: 2011-12-08T11:28:04-07:00
by realmaverick
Hi guys,

We have an issue with imagemagick and large .gif images.

We are running the latest version of ImageMagick, compatible with Cpanel.

An example file is 350kb in size but 100 frames. We are trying to generate a thumbnail of the wallpaper. However, when doing so with a gif with this many frames, the server comes to a stand still.

I was watching in the backend, the load was 2 and goes up to 50, free memory went from 15GB to 600mb.

The server is dedicated dual quad core with 28GB ram.

I wouldn't think it would struggle to create the thumb?

Any ideas?

Re: ImageMagick crashing Linux Server

Posted: 2011-12-08T12:22:35-07:00
by realmaverick
Here are the exact commands.

For jpg thumbnails:
/usr/bin/convert $magik_orig_file -coalesce $magik_coalesce_name
/usr/bin/convert $magik_coalesce_name -resize 100x100 -quality 60 -background white -gravity center -extent 100x100 $magik_final_file
 
For png/gif thumbnails:
/usr/bin/convert $magik_orig_file -coalesce $magik_coalesce_name
/usr/bin/convert $magik_coalesce_name -resize 100x100 +dither -colors 64 -background white -gravity center -extent 100x100 $magik_final_file
 
For jpg medium thumbnails:
/usr/bin/convert $magik_orig_file -coalesce $magik_coalesce_name
/usr/bin/convert $magik_coalesce_name -resize 200x -quality 60 $magik_final_file
 
For png/gif medium thumbnails:
/usr/bin/convert $magik_orig_file -coalesce $magik_coalesce_name
/usr/bin/convert $magik_coalesce_name -resize 200x +dither -colors 64 $magik_final_file