ImageMagick crashing Linux Server

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
realmaverick
Posts: 9
Joined: 2011-10-28T06:38:41-07:00
Authentication code: 8675308

ImageMagick crashing Linux Server

Post 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?
realmaverick
Posts: 9
Joined: 2011-10-28T06:38:41-07:00
Authentication code: 8675308

Re: ImageMagick crashing Linux Server

Post 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
Post Reply