array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'imagick.getimagelength.php', 1 => 'Imagick::getImageLength', 2 => 'Returns the image length in bytes', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.getimageiterations.php', 1 => 'Imagick::getImageIterations', ), 'next' => array ( 0 => 'imagick.getimagematte.php', 1 => 'Imagick::getImageMatte', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/getimagelength.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::getImageLength

(PECL imagick 2, PECL imagick 3)

Imagick::getImageLengthReturns the image length in bytes

Опис

public Imagick::getImageLength(): int

Returns the image length in bytes

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns an int containing the current image size.

Приклади

Приклад #1 Using Imagick::getImageLength():

Getting image length in bytes

<?php
$image
= new Imagick('test.jpg');
echo
$image->getImageLength() . ' bytes';
?>