SunshinePHP Developer Conference 2015

Imagick::nextImage

(PECL imagick 2.0.0)

Imagick::nextImageMoves to the next image

Descrição

bool Imagick::nextImage ( void )

Associates the next image in the image list with an Imagick object.

Valor Retornado

Returns TRUE on success.

add a note add a note

User Contributed Notes 1 note

up
0
markus dot s dot schmitz at gmail dot com
1 year ago
Convert PDF to JPG page-wise:

<?php
$i
= 0;

$imagick = new Imagick();
$imagick->readImage('myfile.pdf');
while(
$imagick->hasNextImage()) {
   
$imagick->writeImage(++$i.'-converted.jpg', false);
   
$imagick->nextImage();
}
?>

See also: http://php.net/manual/en/imagick.readimage.php
To Top