HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Imagick::interpolativeResizeImage

← identifyFormat   inverseFourierTransformImage →

Example

function interpolativeResizeImage(
    $image_path,
    int $columns,
    int $rows,
    int $interpolate_type // INTERPOLATE_
) {
    $imagick = new \Imagick(realpath($image_path));
    $imagick->interpolativeResizeImage($columns, $rows, $interpolate_type);
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();
}