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: Lars Magne Ingebrigtsen
Subject: Re: Slow image display over network
Date: Fri, 24 Sep 2010 17:55:41 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

address@hidden writes:

>     (call-process "identify" nil "*imagemagic identify*" nil "-verbose" 
> image-file) ;; "-ping" sometimes segfaults for me

Hm.  That would make gnus-html more usable on a remote X, but adding
dependencies on yet another external program isn't all that attractive
to me...

> The C code would look vaguely similar to this(for the imagemagick loader):
>
>   MagickWand  *ping_wand;
>   int siz_x; int siz_y;
>   status = MagickPingImage(ping_wand, filename);
>   numimages = MagickGetNumberImages(ping_wand);
>   MagickGetImageResolution(ping_wand, &siz_x, &siz_y);
>
> To do this properly I would suppose one needs to invent a lisp structure
> compatible with the display spec that can hold image meta data, and have
> several implementations of the interface, one for imagemagick, one for
> when imagemagick isnt available, that could maybe use "file" etc
> ad-overengineering-nauseam. (also call the meta function depending on
> the image loader)

Yes, that would be the clean way to do it.  However, since :resize and
stuff only works on the imagemagick image thing anyway, would it make
sense to special-case image-size for imagemagick images?

-- 
(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen




reply via email to

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