Check the file is loading first - store the result of "MagickReadImage($resource, 'VSBackup/_MG_6005.JPG');" in a variable and check. It may be worth specifying a full path to rule out any issues with that.
Try this...
Code: Select all
<?php
$resource = NewMagickWand();
$openResult = MagickReadImage($resource, 'VSBackup/_MG_6005.JPG');
if ($openResult === true)
{
echo 'Opened OK.<BR>';
$width = MagickGetImageWidth($resource);
echo $width;
}
else
echo 'Failed to open';
?>