ConFoo: Call for paper is now Open

Imagick::getImageWidth

(PECL imagick 2.0.0)

Imagick::getImageWidthReturns the image width

Descrizione

int Imagick::getImageWidth ( void )

Returns the image width.

Valori restituiti

Returns the image width.

Errori/Eccezioni

Lancia una ImagickException in caso di errore.

add a note add a note

User Contributed Notes 1 note

up
-2
terry
6 months ago
<?php

$image
= new Imagick("picture.jpg");
$width = $image->getImageWidth();
print
"the image width is " . $width . " pixels";

?>

Will print:
the image width is 200 pixels
To Top