From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#51596: image-transform-resize has inconsistent semantics wrt scaling up/down Date: Thu, 4 Nov 2021 12:41:11 -0700 Message-ID: References: <87fssbu7wh.fsf@gnus.org> <86r1bvzq88.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28296"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 51596@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 04 20:42:21 2021 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 1miicv-00074d-9e for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Nov 2021 20:42:21 +0100 Original-Received: from localhost ([::1]:35980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miict-0001L3-Q2 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Nov 2021 15:42:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miicc-0001KB-PM for bug-gnu-emacs@gnu.org; Thu, 04 Nov 2021 15:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miicc-00075L-Gy for bug-gnu-emacs@gnu.org; Thu, 04 Nov 2021 15:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1miicc-0007HY-AT for bug-gnu-emacs@gnu.org; Thu, 04 Nov 2021 15:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Nov 2021 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51596 X-GNU-PR-Package: emacs Original-Received: via spool by 51596-submit@debbugs.gnu.org id=B51596.163605488027940 (code B ref 51596); Thu, 04 Nov 2021 19:42:02 +0000 Original-Received: (at 51596) by debbugs.gnu.org; 4 Nov 2021 19:41:20 +0000 Original-Received: from localhost ([127.0.0.1]:43647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miibv-0007Ga-UR for submit@debbugs.gnu.org; Thu, 04 Nov 2021 15:41:20 -0400 Original-Received: from mail-pl1-f179.google.com ([209.85.214.179]:39616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miibu-0007GN-33 for 51596@debbugs.gnu.org; Thu, 04 Nov 2021 15:41:18 -0400 Original-Received: by mail-pl1-f179.google.com with SMTP id t21so9004695plr.6 for <51596@debbugs.gnu.org>; Thu, 04 Nov 2021 12:41:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc:content-transfer-encoding; bh=QA6Pwt50fXtOJyfHyU5cZ+e9CInaEEG4hp2ZJXSicio=; b=ogzziSg6kHjXTLf4V2GmxFI3WYrtGFZt87mn2uPeaOErx0JQJdWaNhdppvrqdOFWKs fmM+k/cmuGPAcT+2D27GaStlAdUx6KYUAfhQUZA6mUny5BmP53WoLg92BScS29F0mmVC isgTahFUW9lOgDnv6DT2ZTkxVMFwPdLZv8nMkyUPu73WTFGZ5HloOD3ruWUC8zpObtmQ UvXHDGa4B7fkfHPZHvxmGnY1ZcWc3SkXYitcKCuHjhM05K2ShqSO5AZXeenUs1X8/yD8 CNgaJT8VvbXzJILSLZSJpqHVSr8PCSIc6VF5Ji/zAfPAXBe+AxgLK/oy8n4qmKvoyokD yf/g== X-Gm-Message-State: AOAM530hymkeqJXveV+JoMKALomXiFlc7jkTbVF79BvMcXwMQswYjWZR jCwUEH1JxHcCad18o29AAi3Kc1NdNuhWXcZufYU= X-Google-Smtp-Source: ABdhPJxdsCQnR4jFnpUI1etW2sOmRP2l8jKblwhkVbazvMlIQZqF5MvvdfGBkipdUnqJHzjbt3YhptGK43F2ovu5dUs= X-Received: by 2002:a17:90b:1e0e:: with SMTP id pg14mr24330416pjb.143.1636054872313; Thu, 04 Nov 2021 12:41:12 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 4 Nov 2021 12:41:11 -0700 In-Reply-To: <86r1bvzq88.fsf@mail.linkov.net> 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:218945 Archived-At: Juri Linkov writes: >> I made a quick review of other image viewers: >> >> emacs gthumb geeqie eog >> ----- ------ ------ --- >> fit height and width Automatic Zoom 1:1 Best fit >> Fit to window Fit image to window > > What is =E2=80=9CFit to window=E2=80=9D? Does it distort the image > by changing its height/width ratio? No, it preserves the aspect ratio. >> Perhaps we could even have a "smart" option that only scales images up >> larger than some height and width, and otherwise leaves them in their >> original size. That's probably the one I would like to use, now that I >> think about it. (I usually prefer to scale images up, but as you point >> out it's pretty useless to scale small icons to fit the window.) > > Maybe a new user option (disabled by default) could scale up > like ImageMagick's '-resize' does. What does that option do? (And yes, I imagine the above "smart" resizing idea to be both optional and separate from the standard options.)