From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#51596: image-transform-resize has inconsistent semantics wrt scaling up/down Date: Thu, 04 Nov 2021 21:49:55 +0200 Organization: LINKOV.NET Message-ID: <86cznfzonw.fsf@mail.linkov.net> References: <87fssbu7wh.fsf@gnus.org> <86r1bvzq88.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31120"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Lars Ingebrigtsen , 51596@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 04 20:51:10 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 1miilS-0007rp-FM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Nov 2021 20:51:10 +0100 Original-Received: from localhost ([::1]:42142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miilQ-0005rr-Pa for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Nov 2021 15:51:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miilK-0005pt-Oz for bug-gnu-emacs@gnu.org; Thu, 04 Nov 2021 15:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60338) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miilK-0002gs-GH for bug-gnu-emacs@gnu.org; Thu, 04 Nov 2021 15:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1miilK-0007X3-BJ for bug-gnu-emacs@gnu.org; Thu, 04 Nov 2021 15:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Nov 2021 19:51: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.163605543928924 (code B ref 51596); Thu, 04 Nov 2021 19:51:02 +0000 Original-Received: (at 51596) by debbugs.gnu.org; 4 Nov 2021 19:50:39 +0000 Original-Received: from localhost ([127.0.0.1]:43651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miikw-0007WR-QY for submit@debbugs.gnu.org; Thu, 04 Nov 2021 15:50:39 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:59935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miiku-0007WA-CB for 51596@debbugs.gnu.org; Thu, 04 Nov 2021 15:50:37 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 7911760007; Thu, 4 Nov 2021 19:50:27 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Thu, 4 Nov 2021 12:41:11 -0700") 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:218946 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 “Fit to window”? Does it distort the image >> by changing its height/width ratio? > > No, it preserves the aspect ratio. What is the difference between “Automatic” and “Fit to window”? >>> 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.) It scales up, unless a special character > is used at the end.