From: address@hidden (Kim F. Storm)
Jason Rumney <address@hidden> writes:
> emacs user wrote:
>> an example:
>>
>> before editing the image: 33Mb
>> during: 39Mb
>> after killing the buffer: 39Mb
>> image file is 186263 bytes large (jpeg)
>
> Emacs needs to decompress your jpeg image to display it, and rather
> than do that every time it gets displayed, it caches the decompressed
> image for image-cache-eviction-delay seconds after it was last
> displayed. By default, image-cache-eviction-delay is 1800, so what
> happens to the memory usage if you leave Emacs for half an hour?
Or try this:
M-: (clear-image-cache t) RET