Imagick::getImage

(PECL imagick 2.0.0)

Imagick::getImageReturns a new Imagick object

설명

Imagick Imagick::getImage ( void )

Returns a new Imagick object with the current image sequence.

반환값

Returns a new Imagick object with the current image sequence.

오류/예외

오류시에 ImagickException이 발생합니다.

add a note 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