downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Imagick::getImageTicksPerSecond> <Imagick::getImageSignature
Last updated: Fri, 20 Nov 2009

view this page in

Imagick::getImageSize

(PECL imagick 2.0.0)

Imagick::getImageSizeReturns the image length in bytes

Description

int Imagick::getImageSize ( void )
Warning

This function is currently not documented; only its argument list is available.

Returns the image length in bytes

Return Values

Returns an int containing the current image size.



add a note add a note User Contributed Notes
Imagick::getImageSize
nikolaus
17-Oct-2009 07:52
If you're planning to stream imagick images via http, pay attention that this function may return the uncompressed image size, so it's not directly suitable for setting the content-length http header.
benford at bluhelix dot com
22-Jun-2009 10:12
Try Imagick::getSize, Imagick::getImageWidth, or Imagick::getImageHeight if you are looking to get dimensions in pixels (rows, columns) of the current image.
perching_eagle at yahoo dot com
05-Oct-2007 01:37
/* get the size of the image in bytes */
$image=new Imagick("c:/htdocs/rose.jpg");
$size=$image->getImageSize();
print "the size of the picture is ".$size." bytes";

result

the size of the picture is 3461 bytes

 
show source | credits | stats | sitemap | contact | advertising | mirror sites