When I use either resizeImage or sampleImage, I get errors indicating I'm not supplying enough parameters, like so...
Warning: Imagick::sampleimage() expects exactly 2 parameters, 1 given
In fact, I am only supplying the first parameter because I want to set the width, and not the height, to preserve the aspect ratio...
$subImage->resizeImage($w);
The code works, and I believe all parameters should be optional except the first one, so why is there an error and how do I eliminate it?