PHP 5.6.0RC3 is available

Imagick::getImageWidth

(PECL imagick 2.0.0)

Imagick::getImageWidthReturns the image width

Beschreibung

int Imagick::getImageWidth ( void )

Returns the image width.

R├╝ckgabewerte

Returns the image width.

Fehler/Exceptions

Wirft ImagickException bei Fehlern.

add a note add a note

User Contributed Notes 1 note

up
-1
terry
4 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