[HELP] Opened image weight (memory) ?

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
zax

[HELP] Opened image weight (memory) ?

Post by zax »

Hello,

I'm new to Imagick and I would like to know the size in memory of a previously opened image (not the file size).
In order to get this memory size, I actually make a calculation with width, height, layers and depth but sometimes Imagick can't retrieve image depth from a TIF image.

Thanks for your help.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: [HELP] Opened image weight (memory) ?

Post by magick »

Post a URL to a TIFF image where ImageMagick fails to retrieve the image depth. It should in all cases report the correct image depth.
zax

Re: [HELP] Opened image weight (memory) ?

Post by zax »

You're right, I didn't encounter any problem with image depth but, on order to calculate the "opened image weight", I need to retrieve the number of layers. And that's where my problem begin.
Post Reply