PHP 5.4.31 Released

Imagick::getImageWidth

(PECL imagick 2.0.0)

Imagick::getImageWidthReturns the image width

Descrição

int Imagick::getImageWidth ( void )

Returns the image width.

Valor Retornado

Returns the image width.

Erros

Throws ImagickException on error.

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