emacs-devel
[Top][All Lists]
Advanced

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

Re: Testing native image scaling


From: YAMAMOTO Mitsuharu
Subject: Re: Testing native image scaling
Date: Wed, 27 Mar 2019 11:35:26 +0900
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Goj┼Ź) APEL/10.8 EasyPG/1.0.0 Emacs/25.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

On Mon, 21 Jan 2019 01:05:18 +0900,
Eli Zaretskii wrote:
> 
> > Date: Sat, 19 Jan 2019 21:45:43 +0000
> > From: Alan Third <address@hidden>
> > Cc: address@hidden
> > 
> > On Sat, Jan 19, 2019 at 11:31:34AM +0200, Eli Zaretskii wrote:
> > > Alan, could you please tell how you tested native image scaling with
> > > the XRENDER extension, and perhaps show some Lisp or existing commands
> > > you used for that?  E.g., did the features in thumbs.el work for you
> > > in a build without Imagemagick?
> > 
> > I just used a fairly simple series of commands like this:
> > 
> > (setq i (create-image "~/image.png" nil nil :scale 0.5))
> > (insert-image i)
> > (setq ii (create-image "~/image.png" nil nil :scale 0.5))
> > (insert "\n")
> > (insert-image ii)
> 
> Thanks, this was very helpful.  (Actually, just create-image with one
> argument is enough: after inserting it, '+' or '-' on the image will
> interactively resize it.)

I think we should test sliced images as well.

  (insert-sliced-image (create-image "splash.png" nil nil :scale 0.5) nil nil 3 
5)

Actually, I suspect this does not work on W32 because the comparison
with the original image size is made for s->slice.width (or height)
rather than s->img->width (or height) as I just did for cairo code.
Could you check it on W32?

                                     YAMAMOTO Mitsuharu
                                address@hidden



reply via email to

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