ImageMagik filling my temp dir
Posted: 2007-05-30T09:06:00-07:00
Hi,
I recently upgraded my image gallery site to resize photos with imagemagik and magickwand for php. It worked fine until I started getting a problem with an error 28 on the site. The cause of this seems to be my servers temp directory filling up due to imagemagik. I use something like:
$resource = NewMagickWand();
MagickReadImage($resource, $_FILES['file1']['tmp_name']);
$resource = MagickTransformImage($im, '0x0', "{$newwidth}x{$newheight}" );
MagickWriteImage($resource, $name);
I presume i need some kind of line after this to delete the temporary file?
Help would be apreciated
Thanks
I recently upgraded my image gallery site to resize photos with imagemagik and magickwand for php. It worked fine until I started getting a problem with an error 28 on the site. The cause of this seems to be my servers temp directory filling up due to imagemagik. I use something like:
$resource = NewMagickWand();
MagickReadImage($resource, $_FILES['file1']['tmp_name']);
$resource = MagickTransformImage($im, '0x0', "{$newwidth}x{$newheight}" );
MagickWriteImage($resource, $name);
I presume i need some kind of line after this to delete the temporary file?
Help would be apreciated
Thanks