GNU bug report logs -
#38394
Fwd: Use different image filtering when zooming in vs zooming out
Previous Next
Reported by: Alan Third <alan <at> idiocy.org>
Date: Tue, 26 Nov 2019 21:42:02 UTC
Severity: normal
Merged with 39736
Found in version 27.0.60
Done: Alan Third <alan <at> idiocy.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On Sun, Aug 02, 2020 at 07:52:25PM +0200, Lars Ingebrigtsen wrote:
> Alan Third <alan <at> idiocy.org> writes:
>
> > It might be worth smoothing on scaling down, but not on scaling up.
> > That way if you zoom in you get exact pixels, but zooming out you
> > don’t get aliasing effects.
> >
> > I don’t know if that would add any other problems...
>
> You apparently didn't apply this patch?
There didn't appear to be much enthusiasm so I just left it in case
someone requested it in the future.
> > * src/image.c (image_set_transform [HAVE_XRENDER]): Use different filter
> > when zooming in vs zooming out.
>
> I think it makes sense... although I'm not sure of what the effects are
> if you just increase the image size by, say, a couple percent.
I've attached an updated version of this patch and a screenshot
showing the result with a couple of levels of scaling.
Annoyingly we now use Cairo by default which is unaffected by this
change, so only plain X users will see this behaviour.
--
Alan Third
[scaling.png (image/png, attachment)]
[0001-Don-t-smooth-images-when-scaling-up-bug-38394.patch (text/plain, attachment)]
This bug report was last modified 4 years and 339 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.