PHP 5.5.20 is available

Imagick::getImageWidth

(PECL imagick 2.0.0)

Imagick::getImageWidthReturns the image width

Descrierea

int Imagick::getImageWidth ( void )

Returns the image width.

Valorile întoarse

Returns the image width.

Erori/Excepții

Emite ImagickException în caz de eroare.

add a note add a note

User Contributed Notes 1 note

up
-2
terry
9 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