PHP 8.4.2 Released!

Imagick::getImage

(PECL imagick 2, PECL imagick 3)

Imagick::getImageReturns a new Imagick object

Descrizione

public Imagick::getImage(): Imagick

Returns a new Imagick object with the current image sequence.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns a new Imagick object with the current image sequence.

Errori/Eccezioni

Lancia una ImagickException in caso di errore.

add a note

User Contributed Notes 1 note

up
0
Abe
3 years ago
<?php

// Create a new imagick object
$imagick = new Imagick();

// Read the image
$pngfn='myfile.png';
$imagick->readImage($pngfn);

// Display the image
header("Content-Type: image/png");
echo
$imagick->getImageBlob();
?>
To Top