[imp] imp memory requirement when large image is attached

Michael M Slusarz slusarz at horde.org
Wed May 24 10:18:04 PDT 2006


Quoting Matus UHLAR - fantomas <uhlar at fantomas.sk>:

> Hello,
>
> one of our customers received an e-mail with a big, large, huge image
> - 2.1MB jpeg file, 6603x4708 pixels.
>
> The image was supposed to be an atachment, not viewable inline.
> (Content-Disposition: attachment; filename="...")
> The user even did not have IMP set up to display attachments inline.
>
> However I found out that imp needs ~170MB of memory to display the
> message, which did not contain anything else.
>
> Could I know, what causes IMP to eat that much memory?
> (gd library?) Is there any possibility to avoid this?
> Thank you.

Most likely it is because IMP needs to load the image into memory  
because it needs to determine if a thumbnail can be generated.  The  
only way to prevent this would be to disable thumbnail generation, and  
I believe there is already an enhancement ticket on bugs.horde.org.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]


More information about the imp mailing list