Page 1 of 1

Posted: 2006-12-25T19:09:51-07:00
by magick
Generally you can only know the image file size by writing it to memory or disk first. Some formats are predicatable in size based on the image width and height but generally this is not reliable for most image formats.

Posted: 2006-12-25T22:14:47-07:00
by magick
You want to write to a blob to measure the image size in memory. MagickWand has a MagickWriteImageBlob() method. There may be a similar method in MagickWand for PHP.