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: Thu, 20 Jun 2013 23:53:11 +0300

> From: Lars Magne Ingebrigtsen <address@hidden>
> Cc: address@hidden
> Date: Thu, 20 Jun 2013 21:52:29 +0200
> 
> > If the former, perhaps imagemagick is the only library that needs your
> > "fast path".  The other image libraries don't, as they clearly don't
> > write to X (otherwise I couldn't have used them on Windows).
> 
> I can't see anything in the imagemagick code that talks to X, so I think
> it's a general Emacs image thingie.

IT CANNOT BE TRUE!!!!  IF IT WERE TRUE, I COULD NOT HAVE USED IMAGES
ON WINDOWS, where there's no X.

> Anyway, this has led me to consider this a bit more.  Sure, this is
> faster than 46 seconds:
> 
> (benchmark-elapse (image-size (create-image 
> "/home/larsi/Catalogue/html/scans/BAD0013/BAD0013-1-l.jpg") t))
> => 0.226372938
> 
> But on the other hand, the next time we open the file to scale it down,
> we'll have to decode the image yet again, which will take 0.23 seconds
> once again.

If it is in the cache, Emacs will fetch it from there.



reply via email to

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