Warning: magickwriteimage() expects parameter 1 to be resour

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
jryans55

Warning: magickwriteimage() expects parameter 1 to be resour

Post by jryans55 »

I've been using ImageMagick for quite sometime without issue. today I get this message:

Warning: magickwriteimage() expects parameter 1 to be resource, boolean given


Here's the code calling magickwrite:

$image = NewMagickWand();
MagickReadImage($image, $upload_dir . '/' . $filename);

// Generate the full size image
$image = MagickTransformImage($image, '0x0', '500x500');
MagickWriteImage($image, $upload_dir . '/' . $filename);

MagickWrite is installed
It's been working for a couple of years. Here'swhere it breaks: MagickWriteImage($image, $upload_dir . '/' . $filename);

Does anyone know what the issue could be??

Please help!
Post Reply