Resample image to desired resolution

# Imagick::resampleImage

(PECL imagick 2, PECL imagick 3)

Imagick::resampleImage — Resample image to desired resolution

### Beschreibung

public function Imagick::resampleImage(
float `$x_resolution`,
float `$y_resolution`,
int `$filter`,
float `$blur`
): bool

Resample image to desired resolution.

### Parameter-Liste

`x_resolution`

`y_resolution`

`filter`

`blur`

### Rückgabewerte

Liefert `true` bei Erfolg.

### Beispiele

Beispiel #1 Imagick::resampleImage()

    <?php
    function resampleImage($imagePath) {
        $imagick = new \Imagick(realpath($imagePath));

        $imagick->resampleImage(200, 200, \Imagick::FILTER_LANCZOS, 1);
        header("Content-Type: image/jpg");
        echo $imagick->getImageBlob();
    }

    ?>

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open