From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Ponce Newsgroups: gmane.emacs.bugs Subject: bug#38394: Fwd: Use different image filtering when zooming in vs zooming out Date: Fri, 14 Aug 2020 23:14:22 +0200 Message-ID: <4be3a019-fcad-033a-35cf-5a67a23bb953@orange.fr> References: <20200814202032.GD44359@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6930"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 To: Alan Third , 38394@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 14 23:15:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6h2c-0001cj-Jj for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 23:15:10 +0200 Original-Received: from localhost ([::1]:50726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6h2b-00075N-L1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 17:15:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6h2U-00075G-3Z for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 17:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6h2T-0008O8-PY for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 17:15:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k6h2T-0003OY-Lk for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 17:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Ponce Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Aug 2020 21:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38394 X-GNU-PR-Package: emacs Original-Received: via spool by 38394-submit@debbugs.gnu.org id=B38394.159743967312997 (code B ref 38394); Fri, 14 Aug 2020 21:15:01 +0000 Original-Received: (at 38394) by debbugs.gnu.org; 14 Aug 2020 21:14:33 +0000 Original-Received: from localhost ([127.0.0.1]:53994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6h20-0003NZ-MA for submit@debbugs.gnu.org; Fri, 14 Aug 2020 17:14:32 -0400 Original-Received: from smtp08.smtpout.orange.fr ([80.12.242.130]:49260 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6h1y-0003NK-8G for 38394@debbugs.gnu.org; Fri, 14 Aug 2020 17:14:31 -0400 Original-Received: from [192.168.1.25] ([90.112.77.2]) by mwinf5d68 with ME id FZEN2300602yqQS03ZEPBq; Fri, 14 Aug 2020 23:14:23 +0200 X-ME-Helo: [192.168.1.25] X-ME-Auth: ZGFfdmlkQHdhbmFkb28uZnI= X-ME-Date: Fri, 14 Aug 2020 23:14:23 +0200 X-ME-IP: 90.112.77.2 In-Reply-To: <20200814202032.GD44359@breton.holly.idiocy.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185171 Archived-At: On 14/08/2020 22:20, Alan Third wrote: > On Fri, Aug 14, 2020 at 08:03:04AM +0200, David Ponce wrote: >> Hello, >> >> With this patch applied >> (https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=519a93e067f459ceddb57573261a52118086b73d), >> I noticed that small icon images look bad with image defaut >> attributes, but look as expected when I add the attribute :scale 1 >> (see the attached screenshots). The issue is that by default on an >> HiDPI screen, images are scaled up (in my configuration the default >> scale is 1.2). >> >> I don't know if there is a way to force the smoothing behavior, if >> not, maybe an image attribute could be considered ? > > Is this on X? Yes, here are the Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER LCMS2 > > 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.