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
[edit] Last updated: Fri, 25 May 2012

view this page in

Imagick::getImageSize

(PECL imagick 2.0.0)

Imagick::getImageSizeRetourne la taille de l'image en octets

Description

int Imagick::getImageSize ( void )

Retourne la taille de l'image en octets.

Valeurs de retour

Retourne un entier représentant la taille de l'image en octets.



add a note add a note User Contributed Notes Imagick::getImageSize
murphy(at)murphyslantech(dot)de 30-Nov-2010 08:21
If you get an error or warning (when using strict settings for PHP), telling you, that this function should not be used anymore try getImageLength() instead ...
Ricardo Cordts Monteiro 12-Feb-2010 05:11
Practical use to get the dimensions of the image:

<?php
$image
= new Imagick($image_src);
$d = $image->getImageGeometry();
$w = $d['width'];
$h = $d['height'];
?>
nikolaus 17-Oct-2009 02: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 05: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 04-Oct-2007 08: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 | sitemap | contact | advertising | mirror sites