emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow image display over network


From: Chong Yidong
Subject: Re: Slow image display over network
Date: Fri, 24 Sep 2010 11:56:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> David Kastrup <address@hidden> writes:
>
>> create-image is not a problem.  image-size, however, calls lookup_image,
>> and that loads and initiates an image, including caching it etc.
>
> Hm.  I can understand the need to instantiate the image if we're asking
> for the char size of the image, but not the pixel size.  Perhaps this is
> something that can be fixed pretty easily?

It is straightforward but some work.  You have to replace the call to
lookup_image in `image-size' with a new function that avoids loading the
image.  This function would, in turn, call new functions that are
similar to *_load (where * is xbm, xpm, pbm, png, jpeg, tiff, gif, and
imagemagick), that extract the size data without loading the image data
if not already loaded.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]