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();
}