PHP 8.1.0 Beta 2 available for testing

Imagick::getImage

(PECL imagick 2, PECL imagick 3)

Imagick::getImageReturns a new Imagick object

Descrierea

public Imagick::getImage ( ) : Imagick

Returns a new Imagick object with the current image sequence.

Valorile întoarse

Returns a new Imagick object with the current image sequence.

Erori/Excepții

Emite ImagickException în caz de eroare.

add a note add a note

User Contributed Notes 1 note

up
0
Abe
2 months 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