Resample image to desired resolution
$x_resolution
$y_resolution
$filter
$blur
Resample image to desired resolution.
x_resolution
y_resolution
filter
blur
Returns TRUE on success.
TRUE
Example #1 Imagick::resampleImage
<?phpfunction resampleImage($imagePath) { $imagick = new \Imagick(realpath($imagePath)); $imagick->resampleImage(200, 200, \Imagick::FILTER_LANCZOS, 1); header("Content-Type: image/jpg"); echo $imagick->getImageBlob();}?>