Imagick::getImageLength
PHP function
Edit on GitHub ✎
(PECL imagick 2, PECL imagick 3)
Returns the image length in bytes
Description
Imagick::getImageLength(): int
Returns the image length in bytes
Parameters Parameters
Return Values
Returns an int containing the current image size.
Examples
Using Imagick::getImageLength():
Getting image length in bytes
php
<?php
$image = new Imagick('test.jpg');
echo $image->getImageLength() . ' bytes';
?>