bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#38394: Fwd: Use different image filtering when zooming in vs zooming


From: Alan Third
Subject: bug#38394: Fwd: Use different image filtering when zooming in vs zooming out
Date: Sat, 15 Aug 2020 01:10:17 +0200 (CEST)

On Fri, Aug 14, 2020 at 11:14:22PM +0200, David Ponce wrote:
> On 14/08/2020 22:20, Alan Third wrote:
> > Maybe we should only go to nearest neighbour when the scaling is >= 2?
> > Or greater than the scale factor? Hmm, I'm not sure what's best here.
> > 
> 
> Not sure either.
> Maybe an option could define the min scale to go to nearest neighbour?
> By default (nil?) it could be the scale factor?
> 
> An image attribute could make sense too, similar to :scale, but for smoothing.

Can you try replacing this line (2125):

    bool scale_down = (width < img->width) || (height < img->height);

with

    bool scale_down = (double)width/img->width < 1.2;

and have a play about with the number and see how it looks?
-- 
Alan Third





reply via email to

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