Linux version 2.6.9-42.0.10.ELsmp (mockbuild@builder7.centos.org) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 SMP Tue Feb 27 10:11:19 EST 2007
output of: identify -version
Version: ImageMagick 6.5.0-0 2009-03-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
problem:
ImageMagick is filling up the /tmp folder that it is using once in a while. Sometimes it writes files over 1GB!!!
I tried setting limits on the command line:
Code: Select all
$limit = "-limit memory 16 -limit map 32 -limit area 64 -limit disk 128";
$pngpath = /somedir/somefile.png;
if($imageext == ".eps" || $imageext == ".ai") {
$call = "/usr/bin/convert $limit -colorspace RGB $file_path -trim -resize '960x960>' $png_path";
exec($call, $id_output, $id_status);
} else if($imageext == ".psd") {
$call = "/usr/bin/convert $limit -flatten $file_path -trim -resize '960x960>' $png_path";
exec($call, $id_output, $id_status);
} else {
$call = "/usr/bin/convert $limit $file_path -trim -resize '960x960>' $png_path";
exec($call, $id_output, $id_status);
}
...
export MAGICK_FILE_LIMIT="5"
export MAGICK_MEMORY_LIMIT="16mb"
export MAGICK_MAP_LIMIT="32mb"
export MAGICK_AREA_LIMIT="64mb"
export MAGICK_DISK_LIMIT="128mb"
...
Please help.
This is detrimental because PHP uses the /tmp folder to hold sessions and if that is full, our users cannot login.
Thank you,
~Shawn