GNU bug report logs - #38394
Fwd: Use different image filtering when zooming in vs zooming out

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Alan Third <alan@HIDDEN>; dated Tue, 26 Nov 2019 21:42:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 38394 <at> debbugs.gnu.org:


Received: (at 38394) by debbugs.gnu.org; 27 Nov 2019 12:32:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 27 07:32:27 2019
Received: from localhost ([127.0.0.1]:53633 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iZwUd-0005YB-5t
	for submit <at> debbugs.gnu.org; Wed, 27 Nov 2019 07:32:27 -0500
Received: from quimby.gnus.org ([95.216.78.240]:55656)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iZwUb-0005Sl-5m
 for 38394 <at> debbugs.gnu.org; Wed, 27 Nov 2019 07:32:25 -0500
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1iZwUS-0001XP-8w; Wed, 27 Nov 2019 13:32:18 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#38394: Fwd: Use different image filtering when zooming in
 vs zooming out
References: <875zjj4vb7.fsf@HIDDEN>
 <20191117172208.GA63158@HIDDEN>
 <87tv72bbuz.fsf@HIDDEN>
 <87pnhq5odn.fsf@HIDDEN>
 <20191117190105.GB63158@HIDDEN>
 <87blt38no5.fsf@HIDDEN>
 <20191124172612.GA5665@HIDDEN>
 <87k17p9n6y.fsf@HIDDEN>
 <20191126203655.GB7891@HIDDEN>
 <87wobmmkwp.fsf@HIDDEN>
 <20191126212729.GC7891@HIDDEN>
 <CABGBtwkGi_GZwwjV0Awpy+4b_i7UAe23Us7GW5wkPi9RjYpSHg@HIDDEN>
Date: Wed, 27 Nov 2019 13:32:15 +0100
In-Reply-To: <CABGBtwkGi_GZwwjV0Awpy+4b_i7UAe23Us7GW5wkPi9RjYpSHg@HIDDEN>
 (Alan Third's message of "Tue, 26 Nov 2019 21:39:10 +0000")
Message-ID: <87imn5ebzk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Alan Third <alan@HIDDEN> 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. 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was
                             blocked.  See
                             http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
                              for more information.
                             [URIs: ingebrigtsen.no]
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38394
Cc: 38394 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Alan Third <alan@HIDDEN> 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=E2=80=99t get aliasing effects.

I think that makes sense, but I wonder whether some people would think
that zoomed-in images then look "blocky"?

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38394; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Nov 2019 21:41:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 16:41:16 2019
Received: from localhost ([127.0.0.1]:53105 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iZiaC-0005kN-1c
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2019 16:41:16 -0500
Received: from lists.gnu.org ([209.51.188.17]:37848)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <athird@HIDDEN>) id 1iZiaA-0005kA-1i
 for submit <at> debbugs.gnu.org; Tue, 26 Nov 2019 16:41:14 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51768)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <athird@HIDDEN>) id 1iZia8-0007gU-KN
 for bug-gnu-emacs@HIDDEN; Tue, 26 Nov 2019 16:41:13 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE, RCVD_IN_DNSWL_NONE,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <athird@HIDDEN>) id 1iZiYM-0003zW-Qn
 for bug-gnu-emacs@HIDDEN; Tue, 26 Nov 2019 16:39:23 -0500
Received: from mail-io1-f48.google.com ([209.85.166.48]:43531)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <athird@HIDDEN>)
 id 1iZiYM-0003zE-Kj
 for bug-gnu-emacs@HIDDEN; Tue, 26 Nov 2019 16:39:22 -0500
Received: by mail-io1-f48.google.com with SMTP id p12so15020344iog.10
 for <bug-gnu-emacs@HIDDEN>; Tue, 26 Nov 2019 13:39:22 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=B4R4qmn09LekRkwPq5e1kHyxLVN8gvOB1AM3/Dj1wV0=;
 b=bfsr5BoOc/LUGNudBnxL4m3nURFu0AZmBNDR1K9TbRABIdecpw4houeTVFJNDta/5Q
 uLK8Of2fMqrh6vWgPTKzMSWKqBeVigf8ePldUc3Y6pL6O9Xdy6eTBXXVAVJy8oEIrTQ9
 0UkvVteBcSSUOWyGLWlKQd1alerb1pr1yTrUuoVJzSaHzICYxizd3Jl6LHV8YznJFH28
 lgiNkzqjJfHOZmxlC8RIZzTaXpZGiISpHeJs3n50zZmQUYyUYa23MalBlq6Wyk+k5wrU
 EgtKu3VuvK9iciJRW6mxIkQodEh5fQgC6B0DvVLfnDi9wjZzOgQISga/6F5Gw+W6qPcj
 xcKA==
X-Gm-Message-State: APjAAAUuhRMSavgcqCPiMX9CneWgAOAhc0Onwb/3+o8KXNY8z91jNmsF
 xhgEz9DObkvJA2RWdK5M6sns03xFNAboG2sKyGjkTg==
X-Google-Smtp-Source: APXvYqxJSAIb0pWroyLVz3XVujgPCSsM0VXye+fEk7hd/OdIFyDTPVteL5sk7QXPlZUWlWm23fNCVMf4GPhCicrzdrg=
X-Received: by 2002:a5d:9558:: with SMTP id a24mr30733199ios.62.1574804361260; 
 Tue, 26 Nov 2019 13:39:21 -0800 (PST)
MIME-Version: 1.0
References: <875zjj4vb7.fsf@HIDDEN>
 <20191117172208.GA63158@HIDDEN>
 <87tv72bbuz.fsf@HIDDEN> <87pnhq5odn.fsf@HIDDEN>
 <20191117190105.GB63158@HIDDEN>
 <87blt38no5.fsf@HIDDEN>
 <20191124172612.GA5665@HIDDEN>
 <87k17p9n6y.fsf@HIDDEN>
 <20191126203655.GB7891@HIDDEN>
 <87wobmmkwp.fsf@HIDDEN>
 <20191126212729.GC7891@HIDDEN>
In-Reply-To: <20191126212729.GC7891@HIDDEN>
From: Alan Third <alan@HIDDEN>
Date: Tue, 26 Nov 2019 21:39:10 +0000
Message-ID: <CABGBtwkGi_GZwwjV0Awpy+4b_i7UAe23Us7GW5wkPi9RjYpSHg@HIDDEN>
Subject: Fwd: Use different image filtering when zooming in vs zooming out
To: Emacs Bug Reports <bug-gnu-emacs@HIDDEN>
Content-Type: multipart/mixed; boundary="0000000000008c1f1f059846b604"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 209.85.166.48
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

--0000000000008c1f1f059846b604
Content-Type: multipart/alternative; boundary="0000000000008c1f1c059846b602"

--0000000000008c1f1c059846b602
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 26, 2019 at 09:40:06PM +0100, Adam Sj=C3=B8gren wrote:
> Alan writes:
>
> > Every time I look at those screenshots I think that perhaps we should
> > turn off the smoothing completely, then remember I turned it on
> > because photos of real things looked awful without it.
>
> Good point.
>
> But hard to tell whether to smooth or not, I guess? xpm's are probably
> often not-photos, but png's...

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=E2=80=99t get aliasing effects.

I don=E2=80=99t know if that would add any other problems...

Patch attached =E2=80=90 this goes on top of the patch for bug#38109:

    https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D38109#137

It is also only for XRender. I=E2=80=99ve no idea how to go about doing it =
in
other terms.
--=20
Alan Third

--0000000000008c1f1c059846b602
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"g=
mail_attr">On Tue, Nov 26, 2019 at 09:40:06PM +0100, Adam Sj=C3=B8gren wrot=
e:<br></div>
&gt; Alan writes:<br>
&gt; <br>
&gt; &gt; Every time I look at those screenshots I think that perhaps we sh=
ould<br>
&gt; &gt; turn off the smoothing completely, then remember I turned it on<b=
r>
&gt; &gt; because photos of real things looked awful without it.<br>
&gt; <br>
&gt; Good point.<br>
&gt; <br>
&gt; But hard to tell whether to smooth or not, I guess? xpm&#39;s are prob=
ably<br>
&gt; often not-photos, but png&#39;s...<br>
<br>
It might be worth smoothing on scaling down, but not on scaling up.<br>
That way if you zoom in you get exact pixels, but zooming out you<br>
don=E2=80=99t get aliasing effects.<br>
<br>
I don=E2=80=99t know if that would add any other problems...<br>
<br>
Patch attached =E2=80=90 this goes on top of the patch for bug#38109:<br>
<br>
=C2=A0 =C2=A0 <a href=3D"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D38=
109#137" rel=3D"noreferrer" target=3D"_blank">https://debbugs.gnu.org/cgi/b=
ugreport.cgi?bug=3D38109#137</a><br>
<br>
It is also only for XRender. I=E2=80=99ve no idea how to go about doing it =
in<br>
other terms.<br>
-- <br>
Alan Third</div><div class=3D"gmail_quote"><br></div></div>

--0000000000008c1f1c059846b602--

--0000000000008c1f1f059846b604
Content-Type: application/x-patch; 
	name="0001-Don-t-smooth-images-when-zooming-in.patch"
Content-Disposition: attachment; 
	filename="0001-Don-t-smooth-images-when-zooming-in.patch"
Content-Transfer-Encoding: base64
Content-ID: <16ea9a69aaf98555eab1>
X-Attachment-Id: 16ea9a69aaf98555eab1

RnJvbSAyN2JjZjdhZjVlOTEzMDgyMDQ4NmNmM2JmM2MwZWE0OGU1ZjQ0YTgzIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQ0KRnJvbTogQWxhbiBUaGlyZCA8YWxhbkBpZGlvY3kub3JnPg0KRGF0ZTog
VHVlLCAyNiBOb3YgMjAxOSAyMToxODo0NyArMDAwMA0KU3ViamVjdDogW1BBVENIXSBEb24ndCBz
bW9vdGggaW1hZ2VzIHdoZW4gem9vbWluZyBpbg0KDQoqIHNyYy9pbWFnZS5jIChpbWFnZV9zZXRf
dHJhbnNmb3JtIFtIQVZFX1hSRU5ERVJdK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SZW5kZXJTZXRQaWN0dXJlRmlsdGVyIChGUkFNRV9YX0RJ
U1BMQVkgKGYpLCBpbWctPnBpY3R1cmUsIEZpbHRlckJlc3QsDQorICAgICAgWFJlbmRlclNldFBp
Y3R1cmVGaWx0ZXIgKEZSQU1FX1hfRElTUExBWSAoZiksIGltZy0+cGljdHVyZSwgem9vbV9vdXQg
PyBGaWx0ZXJCZXN0IDogRmlsdGVyRmFzdCwNCiAJCQkgICAgICAgMCwgMCk7DQogICAgICAgWFJl
bmRlclNldFBpY3R1cmVUcmFuc2Zvcm0gKEZSQU1FX1hfRElTUExBWSAoZiksIGltZy0+cGljdHVy
ZSwgJnRtYXQpOw0KIA0KICAgICAgIGlmIChpbWctPm1hc2tfcGljdHVyZSkNCiAgICAgICAgIHsN
CiAgICAgICAgICAgWFJlbmRlclNldFBpY3R1cmVGaWx0ZXIgKEZSQU1FX1hfRElTUExBWSAoZiks
IGltZy0+bWFza19waWN0dXJlLA0KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
RmlsdGVyQmVzdCwgMCwgMCk7DQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB6
b29tX291dCA/IEZpbHRlckJlc3QgOiBGaWx0ZXJGYXN0LCAwLCAwKTsNCiAgICAgICAgICAgWFJl
bmRlclNldFBpY3R1cmVUcmFuc2Zvcm0gKEZSQU1FX1hfRElTUExBWSAoZiksIGltZy0+bWFza19w
aWN0dXJlLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJnRtYXQpOw0K
ICAgICAgICAgfQ0KLS0gDQoyLjIxLjANCg0K
--0000000000008c1f1f059846b604--




Acknowledgement sent to Alan Third <alan@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#38394; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 27 Nov 2019 12:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.