From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Images :scale and :width/:height relation Date: Sun, 3 Sep 2023 17:40:43 +0100 Message-ID: References: <87ledqcgss.fsf@ledu-giraud.fr> <8734zvcr94.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5938"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 03 18:41:35 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qcqAI-0001Li-Fk for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Sep 2023 18:41:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcq9i-00063X-Mn; Sun, 03 Sep 2023 12:40:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qcq9e-00062p-TF for emacs-devel@gnu.org; Sun, 03 Sep 2023 12:40:55 -0400 Original-Received: from dane.soverin.net ([2a10:de80:1:4091:b9e9:2218:0:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcq9a-0001Cs-ST for emacs-devel@gnu.org; Sun, 03 Sep 2023 12:40:53 -0400 Original-Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4RdyF90KqkzyX4; Sun, 3 Sep 2023 16:40:45 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4RdyF83HHXzZ1; Sun, 3 Sep 2023 16:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1693759244; bh=6cQNSoMHSgbEFeekNSjh7prbi6/NzUXKr708sTR6Dmc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d8Nhd0LroumkuSLagqmusP5c1kLAl0GubaecZt10yue0GRboLXOBzlO2sXiTMny4k /1/mlORcQSkmeMMGYPQKGev7CyscaOCpS0jc/98Df3QaIXrx7QsziDBHVwe5LUvIZr 1aoeO27C9P9NRWJtMsODCRDBk1t+twck+PSea0F4qSgQfjaqF2DMC/8jrYL/Uxqpmq Obkv6sn3mWKsInB3goTbnxP3QIypO0p4VZrwIKQ3qFs34IlUZdkYeZbVRUyW9+n2mV pbCctcfiQuYi068QdLnulQAvqAE1NuTY9V/7b78hc3cQKiYBHwb63lDKuoA0N5XtnC 7iegkNVU0z/OQ== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96) (envelope-from ) id 1qcq9T-000Vxo-1F; Sun, 03 Sep 2023 17:40:43 +0100 X-Soverin-Authenticated: true Mail-Followup-To: Alan Third , Manuel Giraud , emacs-devel Content-Disposition: inline In-Reply-To: <8734zvcr94.fsf@ledu-giraud.fr> Received-SPF: pass client-ip=2a10:de80:1:4091:b9e9:2218:0:1; envelope-from=alan@idiocy.org; helo=dane.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310005 Archived-At: On Sun, Sep 03, 2023 at 03:37:11PM +0200, Manuel Giraud wrote: > > IIRC the likes of eww will actively load an image and then get the > > size and set the scale accordingly. Perhaps that sort of behaviour > > should be made available generally. > > I should have a look their then. But Emacs does not have a way of > asking "what are the dimensions of this image" without loading it into > its cache? No, afaik the only way to get an image's native dimensions is to load it with no scale or width/height and then check the resulting image. -- Alan Third