The Imagick::getImageLength() function is an inbuilt function in PHP which is used to get the length of an image object in bytes.
Syntax:
bool Imagick::getImageLength( void)
Parameters: This function does not accept any parameter.
Return Value: This function returns the image length in bytes.
Below programs illustrate the Imagick::getImageLength() function in PHP:
Program 1:
Original Image:
<?php   $imagick = new Imagick(   // Getting Length of image // using getimagerelength function $res = $imagick->getImageLength();   // Display Result echo "Length of Image = " . $res; ?> |
Output:
Length of Image = 45435
Program 2:
Original Image:
<?php   $imagick = new Imagick(   // Getting Length of image // using getimagerelength function $res = $imagick->getImageLength();   // Display Result echo "Length of Image = ". $res; ?> |
Output:
Length of Image = 25694
Reference: http://php.net/manual/en/imagick.getimagelength.php


… [Trackback]
[…] Read More Info here to that Topic: geeksforgeeks.org/php-imagick-getimagelength-function-2/ […]
… [Trackback]
[…] Info on that Topic: geeksforgeeks.org/php-imagick-getimagelength-function-2/ […]
… [Trackback]
[…] Read More on to that Topic: geeksforgeeks.org/php-imagick-getimagelength-function-2/ […]
… [Trackback]
[…] Read More here on that Topic: geeksforgeeks.org/php-imagick-getimagelength-function-2/ […]