i've been using ImageMagick in testing and on a production server and it has been working fine. Now i just moved to a new server that is supposed to be better overall and noticing extreme slow downs in ImagMagick convert performance. i am running this from a php script, here are is what i am doing:
Code: Select all
// create the color strokes
$cmd = "$convertCMD -size 1024x713 xc:none -draw @temp/".$uniqueFileName."_color_data.txt temp/".$uniqueFileName."_color.png";
echo shell_exec(escapeshellcmd($cmd));
// create the mask
$cmd = "$convertCMD -size 1024x713 xc:black -draw @temp/" . $uniqueFileName . "_data.txt temp/".$uniqueFileName."_mask.png";
echo shell_exec(escapeshellcmd($cmd));
// composite the images
$cmd = "$convertCMD -size 1300x1000 -bordercolor white -border 650x500 $imgname temp/".$uniqueFileName."_color.png temp/".$uniqueFileName."_mask.png -composite -gravity Center frames/picture-frame-1.png -composite -crop 1300x1000+0+0 temp/" . $uniqueFileName . ".jpg";
echo shell_exec(escapeshellcmd($cmd));
the picture-frame image: http://mcapraro.com/projects/downloads/ ... rame-1.png
and the temp data files:
http://mcapraro.com/projects/downloads/ ... c_data.txt
http://mcapraro.com/projects/downloads/ ... r_data.txt
also, as s second request: can anyone help me combine this into one command vs. saving it out as 3 files as i am doing now.
the version i am running is 6.7.2-1 2011-08-30 Q8, on Linux 2.6.18, machine specs GenuineIntel, Intel(R) Xeon(R)CPU L5630 @ 2.13GHz. I recompiled with quantum depth of 8 as i read it might be faster but saw no increase in speed. the conversion can take about a minute and a half, which i would love to be much quicker
thanks in advance, mich