emacs-devel
[Top][All Lists]
Advanced

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

Re: image-size


From: Eli Zaretskii
Subject: Re: image-size
Date: Fri, 21 Jun 2013 09:15:17 +0300

> From: Jan Djärv <address@hidden>
> Date: Thu, 20 Jun 2013 23:42:28 +0200
> Cc: Eli Zaretskii <address@hidden>,
>  address@hidden
> 
> Loading the image just to determine the size is a huge overhead.  The image 
> loading routines already know the image size before sending it to the server 
> (or the equivalent for W32 and NS), otherwise they could not allocate the 
> right size for the Pixmap.  No Imagemagic is needed to figure out the image 
> size.

Yes.  Thus my suggestion to have a flag in the 'load' method that
would cause it return right after computing the size.




reply via email to

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