From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88783 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.gnus.general Subject: Re: images in article view Date: Fri, 20 Sep 2019 17:23:42 +0100 Organization: On the Interweb somewhere Message-ID: <87d0fvszqp.fsf@ucl.ac.uk> References: <874l1pflli.fsf@ucl.ac.uk> <87k1akecn8.fsf@ucl.ac.uk> <87a7bgcxs3.fsf@tullinup.koldfront.dk> <87ftl8l8f5.fsf@igel.home> <874l1ojf8w.fsf@ucl.ac.uk> <87r24grnwr.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="94488"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M36987@lists.math.uh.edu Fri Sep 20 18:24:45 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBLi9-000OQl-6O for ding-account@gmane.org; Fri, 20 Sep 2019 18:24:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.2) (envelope-from ) id 1iBLhR-0006xn-Rh; Fri, 20 Sep 2019 11:24:01 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.2) (envelope-from ) id 1iBLhN-0006ux-RN for ding@lists.math.uh.edu; Fri, 20 Sep 2019 11:23:57 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) (envelope-from ) id 1iBLhM-0000zb-Ec for ding@lists.math.uh.edu; Fri, 20 Sep 2019 11:23:57 -0500 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226] helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBLhH-00037V-De for ding@gnus.org; Fri, 20 Sep 2019 18:23:54 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iBLhD-000NIH-TP for ding@gnus.org; Fri, 20 Sep 2019 18:23:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Url: http://twitter.com/ericsfraga/ Cancel-Lock: sha1:MYPHLrbhNgsKtkknFr1CPWRa3Rg= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88783 Archived-At: On Monday, 16 Sep 2019 at 22:23, Lars Ingebrigtsen wrote: > Eric S Fraga writes: > >>>> How does it make "images fit in the buffer" (t), without resizing them, >>>> which has it's own option (resize)?! >>> >>> When t, images are not resized, and will stick out of the window when >>> too large. Otherwise, images are either resized to fit, or not inlined >>> at all. >> >> So "images fit in the buffer" is a statement of expectation instead of >> action? > > I think so. I've now clarified the doc string on the trunk. Thanks. However, the code itself (mm-inline-image and gnus-rescale-image) do not work as one would expect. Two things: 1. The rescaling as implemented will only work properly for landscape images when *both* dimensions of the image exceed the dimensions of the window. Ideally, the scaling should be done to cater for the dimension that requires the greater ratio of scaling. 2. For some reason, my value of mm-inline-large-images-proportion is ignored and the default (0.9) is used. I've tried edebugging but I cannot figure out what the problem might be. eric -- Eric S Fraga via Emacs 27.0.50 & org 9.2.4 on Debian bullseye/sid