Warning: magickwriteimage() expects parameter 1
Posted: 2010-06-21T10:01:33-07:00
This error suddenly appeared last Friday. It has been working fine and Now:
Warning: magickwriteimage() expects parameter 1 to be resource, boolean given
Here's the code I use:
// Invoke ImageMagick
$image = NewMagickWand();
MagickReadImage($image, $upload_dir . '/' . $filename);
// Generate the full size image
$image = MagickTransformImage($image, '0x0', '500x500');
MagickWriteImage($image, $upload_dir . '/' . $filename);
Has anyone seen this error? Any help is appreciated!
Warning: magickwriteimage() expects parameter 1 to be resource, boolean given
Here's the code I use:
// Invoke ImageMagick
$image = NewMagickWand();
MagickReadImage($image, $upload_dir . '/' . $filename);
// Generate the full size image
$image = MagickTransformImage($image, '0x0', '500x500');
MagickWriteImage($image, $upload_dir . '/' . $filename);
Has anyone seen this error? Any help is appreciated!