From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 01 12:01:04 2022 Received: (at submit) by debbugs.gnu.org; 1 Jan 2022 17:01:04 +0000 Received: from localhost ([127.0.0.1]:59224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3hke-0005Zw-3C for submit@debbugs.gnu.org; Sat, 01 Jan 2022 12:01:04 -0500 Received: from lists.gnu.org ([209.51.188.17]:48866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3hkb-0005ZP-MQ for submit@debbugs.gnu.org; Sat, 01 Jan 2022 12:01:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3hkZ-0000Gf-Tk for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2022 12:01:00 -0500 Received: from [78.47.144.35] (port=37956 helo=metalevel.at) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3hkW-0007i0-EN for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2022 12:00:59 -0500 Received: from mt-mbpro.localdomain (localhost [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id F13BC9C73F for ; Sat, 1 Jan 2022 18:00:54 +0100 (CET) Received: by mt-mbpro.localdomain (Postfix, from userid 501) id C1D5414C6769; Sat, 1 Jan 2022 18:00:54 +0100 (CET) From: Markus Triska To: bug-gnu-emacs@gnu.org Subject: 27.1; image-size sometimes yields a wrong image size in pixels Date: Sat, 01 Jan 2022 18:00:54 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 78.47.144.35 (failed) Received-SPF: none client-ip=78.47.144.35; envelope-from=triska@metalevel.at; helo=metalevel.at X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Dear all, to reproduce this issue, please download the following image: https://www.metalevel.at/ei/202202.png Then start Emacs with $ emacs -Q and evaluate the following form to obtain the image's size in pixels: (let ((img (create-image "202202.png"))) (image-size img t)) In my case, this yields: (30 . 30) This occurs even though the image dimensions in pixels are actually 202x202: $ identify 202202.png 202202.png PNG 202x202 202x202+0+0 8-bit sRGB 6502B 0.000u 0:00.009 Is there a way to obtain this size in pixels with image-size? The value of max-image-size in my configuration is nil. Thank you and all the best! Markus In GNU Emacs 27.1 (build 1, x86_64-apple-darwin15.3.0, X toolkit, Xaw scroll bars) of 2020-12-12 built on macbook Windowing system distributor 'The X.Org Foundation', version 11.0.11502000 System Description: Mac OS X 10.11.3 Configured using: 'configure --prefix=/opt/local --disable-silent-rules --without-ns --without-dbus --without-gconf --without-libotf --without-m17n-flt --with-gmp --with-gnutls --with-json --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-x-toolkit=lucid --without-xaw3d --without-imagemagick --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-lcms2 --without-rsvg --with-xft 'CFLAGS=-pipe -Os -arch x86_64' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -lfreetype -lfontconfig -Wl,-no_pie -arch x86_64'' Configured features: XPM JPEG TIFF GIF PNG GSETTINGS GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 01 12:09:19 2022 Received: (at 52931) by debbugs.gnu.org; 1 Jan 2022 17:09:19 +0000 Received: from localhost ([127.0.0.1]:59234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3hsd-0005oV-2o for submit@debbugs.gnu.org; Sat, 01 Jan 2022 12:09:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3hsa-0005o9-BV for 52931@debbugs.gnu.org; Sat, 01 Jan 2022 12:09:17 -0500 Received: from [2001:470:142:3::e] (port=35858 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3hsV-0001OM-3A; Sat, 01 Jan 2022 12:09:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lnMD3QUAbvCayJRmuNq/X2WDYfvPGc4kLxIfq4X98Bw=; b=bQvCwLth8+9C 6brAM6O6G+MymRHoM0O5dd8yvTT9E4QvHKcJLCcA2lFSLB4m1VRIXJ1asco/jLCIqRQPhuvOBxX1N YT5mkQ9rXZYQ1G6Q3i7el4lx29q37790MUAdJvRRBXfiH/5nkqXQ6kNfKPU/1393UwRPNW6cmov74 AedJ/cBMoFIxjqu2H0294dEF6ZX/PKjvjuxAl+J3xDR1ey2yBian3Hrk/kmJDKqU7IoBFgIRsLukh jRu8cIPw8POL/OdHPt8ZsZTmEO0/hTONSpJRB/CSo6LgBkLyckY3vVL2TU9b8QJfVRo43/owGE3i7 b3RYx8nSMd/o1oL8THuMeg==; Received: from [87.69.77.57] (port=2647 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3hsU-0004pX-Lb; Sat, 01 Jan 2022 12:09:10 -0500 Date: Sat, 01 Jan 2022 19:09:10 +0200 Message-Id: <83czlbfknd.fsf@gnu.org> From: Eli Zaretskii To: Markus Triska In-Reply-To: (message from Markus Triska on Sat, 01 Jan 2022 18:00:54 +0100) Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52931 Cc: 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Markus Triska > Date: Sat, 01 Jan 2022 18:00:54 +0100 > > Dear all, > > to reproduce this issue, please download the following image: > > https://www.metalevel.at/ei/202202.png > > Then start Emacs with > > $ emacs -Q > > and evaluate the following form to obtain the image's size in pixels: > > (let ((img (create-image "202202.png"))) > (image-size img t)) > > In my case, this yields: > > (30 . 30) I cannot reproduce this: I get (202 . 202), both in Emacs 27.1 and in the current master version. Maybe this is macOS-specific? From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 27 13:28:45 2022 Received: (at 52931) by debbugs.gnu.org; 27 Sep 2022 17:28:45 +0000 Received: from localhost ([127.0.0.1]:56683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odENx-0005Yn-G6 for submit@debbugs.gnu.org; Tue, 27 Sep 2022 13:28:45 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odENu-0005YV-Sw for 52931@debbugs.gnu.org; Tue, 27 Sep 2022 13:28:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ExIO4Wc8D/IGHnDHE38lPIkpSXQK1FxyeZ/F+nm/EIA=; b=CddpFIJmM9rUeOqaZ1iM+wfAmX WSwwcb3Pi08lHzCn7ia8FM1sOnpwryZLVv3YsoAJrgtKZwEsCX1tB1MdbasTh1KyeowL+YUvYlb2j wthgAbnSWKaTmoAKp2AWEsL6OXL8HyVUnlmdlxfmh31gMUEEfJXN7Q2bErvPBUxYqIe4=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odENl-00040Z-KX; Tue, 27 Sep 2022 19:28:36 +0200 From: Lars Ingebrigtsen To: Markus Triska Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels In-Reply-To: (Markus Triska's message of "Sat, 01 Jan 2022 18:00:54 +0100") References: X-Now-Playing: Nina Simone's _Dont Let Me Be Misunderstood_: "Wild Is The Wind" Date: Tue, 27 Sep 2022 19:28:31 +0200 Message-ID: <87mtak20cg.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Markus Triska writes: > to reproduce this issue, please download the following image: > > https://www.metalevel.at/ei/202202.png > > Then start Emacs with > > $ emacs -Q > > and evaluate the following form to obtain the im [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52931 Cc: 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Markus Triska writes: > to reproduce this issue, please download the following image: > > https://www.metalevel.at/ei/202202.png > > Then start Emacs with > > $ emacs -Q > > and evaluate the following form to obtain the image's size in pixels: > > (let ((img (create-image "202202.png"))) > (image-size img t)) > > In my case, this yields: > > (30 . 30) This happens when Emacs isn't able to find the image. Specify the full image file name in create-image instead of using a relative one. Closing. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 27 13:28:50 2022 Received: (at control) by debbugs.gnu.org; 27 Sep 2022 17:28:50 +0000 Received: from localhost ([127.0.0.1]:56686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odEO1-0005Z3-Px for submit@debbugs.gnu.org; Tue, 27 Sep 2022 13:28:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odENz-0005Yd-48 for control@debbugs.gnu.org; Tue, 27 Sep 2022 13:28:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=curjihNIxpdI/UtHBEaLr96LriVKiPuNJeUGbRFhRz0=; b=d9D9ptqRoYwT6NG9BvA1QGyUan iDT82SUYucgVs/hI/JgE+pl2kNroEOJoVST+emERFgoeZIyiaV3Lv/uIvCnt8zczdsoevE1cwRcm7 yjEGmGgDhfVspE9iDED9Wk3dJIqfqtM0HA2dVSYCUrJNRWD5HWVxPE6P59UsKiyprqz0=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odENr-00040h-BR for control@debbugs.gnu.org; Tue, 27 Sep 2022 19:28:41 +0200 Date: Tue, 27 Sep 2022 19:28:38 +0200 Message-Id: <87leq420c9.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #52931 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 52931 notabug close 52931 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 52931 notabug close 52931 quit From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 28 13:24:49 2022 Received: (at 52931) by debbugs.gnu.org; 28 Sep 2022 17:24:49 +0000 Received: from localhost ([127.0.0.1]:34495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odanh-00069V-Ll for submit@debbugs.gnu.org; Wed, 28 Sep 2022 13:24:49 -0400 Received: from [78.47.144.35] (port=58828 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odanf-00069M-4p for 52931@debbugs.gnu.org; Wed, 28 Sep 2022 13:24:48 -0400 Received: by metalevel.at (Postfix, from userid 1000) id 8D67D9C74F; Wed, 28 Sep 2022 19:24:45 +0200 (CEST) From: Markus Triska To: Lars Ingebrigtsen Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels References: <87mtak20cg.fsf@gnus.org> Date: Wed, 28 Sep 2022 19:24:45 +0200 In-Reply-To: <87mtak20cg.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 27 Sep 2022 19:28:31 +0200") Message-ID: <877d1ntns2.fsf@metalevel.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Lars Ingebrigtsen writes: > This happens when Emacs isn't able to find the image. Specify the full > image file name in create-image instead of using a relative one. > > Closing. Why could Eli not reproduce it though? Is this difference between operating systems expected? Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 52931 Cc: 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Lars Ingebrigtsen writes: > This happens when Emacs isn't able to find the image. Specify the full > image file name in create-image instead of using a relative one. > > Closing. Why could Eli not reproduce it though? Is this difference between operating systems expected? Thank you and all the best, Markus From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 28 13:28:17 2022 Received: (at 52931) by debbugs.gnu.org; 28 Sep 2022 17:28:17 +0000 Received: from localhost ([127.0.0.1]:34503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odar3-0006F2-HX for submit@debbugs.gnu.org; Wed, 28 Sep 2022 13:28:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odaqz-0006El-Qb for 52931@debbugs.gnu.org; Wed, 28 Sep 2022 13:28:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=F3eXl6BqqJ+w6SOW6cdrtdEiMP4iJVFlgaI6Jk/Yh9o=; b=n2Nh2tubJFd/JKWcuBSbodJpcY znl8xjvdVpxbUEYJWx4m55xXDKTdk2cUWsBahprm18Q2HOLJ+bT+jG89+z930IckfR7+DXZVQAq8b gSnkQngGMsgllJqpoNbxV4bEw4ksoCytLJBo5f/jnzcDuiXyQhsEXLfBoUVvPEfzD3ec=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odaqq-0005px-R0; Wed, 28 Sep 2022 19:28:07 +0200 From: Lars Ingebrigtsen To: Markus Triska Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels In-Reply-To: <877d1ntns2.fsf@metalevel.at> (Markus Triska's message of "Wed, 28 Sep 2022 19:24:45 +0200") References: <87mtak20cg.fsf@gnus.org> <877d1ntns2.fsf@metalevel.at> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXe0sSdel48JR3/ //8L91rsAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YJHBEMCKSc1hAAAAGISURBVCjPTdK/btswEAbw j4IVIJsMyAWsJyj6FHSQGGgmpTCFSLNtxHwKL901mB48aTAF8XvK3skFWk766f6AdxIWxasBrIUe RQ5bb5abB7JCUPxFXthiWawWM7AATCE1brV0Dh/GObcD6cnfDCQTPDvyxnB44Ha7ki76GbERNOyO E46cqlETm3oQpFKLfZAbtZ6l9OOVHxZtRSfPjGwA/8J3RRpHQZ9yTZOYxWFYmypqKL5h+P5sfGjI Ma0xPT8Zpl8aKtEZkzEtpSzusDkji5+r9xl9gWzAekuGHU4yZI9v0iFekFtFJhdPFrYUWPNCtrUk AT2QyXxy7RwIwBPZWdyNRXNWXGsQO+Q1KkEPnve6Q2nNARyc9DCyL94FrZ3ryR38vbdf0AAvst6+ YRAkvgri0ad5cCtIh1OaV2JlvfRBAyktoO+cIqxLxRgV7uc/JPf2qQ26JJ2D2yaNRIVzzSS47OVT Rec6TZv2fkb7JTj1P4KUPNJOtopJfoOtjJDaupIkwRn/nz/A5eciy6xF5wAAACV0RVh0ZGF0ZTpj cmVhdGUAMjAyMi0wOS0yOFQxNzoxMjowOCswMDowME1Im5MAAAAldEVYdGRhdGU6bW9kaWZ5ADIw MjItMDktMjhUMTc6MTI6MDgrMDA6MDA8FSMvAAAAAElFTkSuQmCC X-Now-Playing: Kate Bush's _The Dreaming_: "Leave It Open" Date: Wed, 28 Sep 2022 19:28:03 +0200 Message-ID: <877d1nxvbw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Markus Triska writes: > Why could Eli not reproduce it though? Presumably he evaluated the form with the current directory in the directory the file was in. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52931 Cc: 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Markus Triska writes: > Why could Eli not reproduce it though? Presumably he evaluated the form with the current directory in the directory the file was in. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 28 14:09:25 2022 Received: (at 52931) by debbugs.gnu.org; 28 Sep 2022 18:09:25 +0000 Received: from localhost ([127.0.0.1]:34569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odbUr-0007Kr-8W for submit@debbugs.gnu.org; Wed, 28 Sep 2022 14:09:25 -0400 Received: from [78.47.144.35] (port=59480 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odbUo-0007Ki-TP for 52931@debbugs.gnu.org; Wed, 28 Sep 2022 14:09:24 -0400 Received: by metalevel.at (Postfix, from userid 1000) id 8EECF9C74F; Wed, 28 Sep 2022 20:09:21 +0200 (CEST) From: Markus Triska To: Lars Ingebrigtsen Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels References: <87mtak20cg.fsf@gnus.org> <877d1ntns2.fsf@metalevel.at> <877d1nxvbw.fsf@gnus.org> Date: Wed, 28 Sep 2022 20:09:21 +0200 In-Reply-To: <877d1nxvbw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 28 Sep 2022 19:28:03 +0200") Message-ID: <87k05n2wxa.fsf@metalevel.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Lars Ingebrigtsen writes: > Presumably he evaluated the form with the current directory in the > directory the file was in. That's what I did too, and yet I only get (30 . 30) as I reported. I used $ emacs -Q in the same directory where the image resides. Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 52931 Cc: 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Lars Ingebrigtsen writes: > Presumably he evaluated the form with the current directory in the > directory the file was in. That's what I did too, and yet I only get (30 . 30) as I reported. I used $ emacs -Q in the same directory where the image resides. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 28 14:43:49 2022 Received: (at 52931) by debbugs.gnu.org; 28 Sep 2022 18:43:49 +0000 Received: from localhost ([127.0.0.1]:34670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odc29-000236-7O for submit@debbugs.gnu.org; Wed, 28 Sep 2022 14:43:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odc27-00022t-BQ for 52931@debbugs.gnu.org; Wed, 28 Sep 2022 14:43:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45244) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odc21-0005GT-GD; Wed, 28 Sep 2022 14:43:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=iwavM71pj8645SHl2D7PburOsrKfzHNIZE+au4YE1Rg=; b=qMV4KhwnCBUy tnP7lRgtpRcr7qT73pJxkKChDZRALsSYd6ZzLdmopzk9IzPSSQcnRifBd3DUrHvZGh5poIdD4gTKV BNuT6P+MoT2cff5+b58LTK3VLxC0tX3NqfeW9qm5Fz93mGPDOx4NJ88W3/0o9ahRUNhYJxnWlxMVR z9BtOYZ4xC47zmVoJ8gQtGGdZXABL8AwIuSJDxv7VakveGquQhQv8VR32jqjFgsq6KsC1TaP0kOVt DLeGBpVoWvvYDQPuUaoAEubfQ3u2sCVDQ9j/TqPh2TTdOYQb4LqczH4KgO/4bW5uhOx1GLDjT2oxr /YdWWd7StuZu4V1OMrEJwQ==; Received: from [87.69.77.57] (port=3648 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odc20-0005qw-SW; Wed, 28 Sep 2022 14:43:41 -0400 Date: Wed, 28 Sep 2022 21:43:37 +0300 Message-Id: <83zgejgx0m.fsf@gnu.org> From: Eli Zaretskii To: Markus Triska In-Reply-To: <87k05n2wxa.fsf@metalevel.at> (message from Markus Triska on Wed, 28 Sep 2022 20:09:21 +0200) Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels References: <87mtak20cg.fsf@gnus.org> <877d1ntns2.fsf@metalevel.at> <877d1nxvbw.fsf@gnus.org> <87k05n2wxa.fsf@metalevel.at> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52931 Cc: larsi@gnus.org, 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 52931@debbugs.gnu.org > From: Markus Triska > Date: Wed, 28 Sep 2022 20:09:21 +0200 > > Lars Ingebrigtsen writes: > > > Presumably he evaluated the form with the current directory in the > > directory the file was in. > > That's what I did too, and yet I only get (30 . 30) as I reported. > I used $ emacs -Q in the same directory where the image resides. Do you get this if the image file name is in absolute form, with all the leading directories? From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 28 14:57:21 2022 Received: (at 52931) by debbugs.gnu.org; 28 Sep 2022 18:57:22 +0000 Received: from localhost ([127.0.0.1]:34674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odcFF-0002OP-Jq for submit@debbugs.gnu.org; Wed, 28 Sep 2022 14:57:21 -0400 Received: from [78.47.144.35] (port=59918 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odcF9-0002OC-JJ for 52931@debbugs.gnu.org; Wed, 28 Sep 2022 14:57:19 -0400 Received: by metalevel.at (Postfix, from userid 1000) id E27AD9C74F; Wed, 28 Sep 2022 20:57:13 +0200 (CEST) From: Markus Triska To: Eli Zaretskii Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels References: <87mtak20cg.fsf@gnus.org> <877d1ntns2.fsf@metalevel.at> <877d1nxvbw.fsf@gnus.org> <87k05n2wxa.fsf@metalevel.at> <83zgejgx0m.fsf@gnu.org> Date: Wed, 28 Sep 2022 20:57:13 +0200 In-Reply-To: <83zgejgx0m.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 28 Sep 2022 21:43:37 +0300") Message-ID: <87o7uzfhti.fsf@metalevel.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eli Zaretskii writes: > Do you get this if the image file name is in absolute form, with all > the leading directories? No: Using an absolute file name, or a file name that starts with "~" works as expected. For you, using a relative file also worked? Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 52931 Cc: larsi@gnus.org, 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Eli Zaretskii writes: > Do you get this if the image file name is in absolute form, with all > the leading directories? No: Using an absolute file name, or a file name that starts with "~" works as expected. For you, using a relative file also worked? From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 28 15:10:14 2022 Received: (at 52931) by debbugs.gnu.org; 28 Sep 2022 19:10:14 +0000 Received: from localhost ([127.0.0.1]:34698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odcRh-0002jT-O3 for submit@debbugs.gnu.org; Wed, 28 Sep 2022 15:10:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odcRf-0002jE-Rd for 52931@debbugs.gnu.org; Wed, 28 Sep 2022 15:10:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odcRZ-0001x2-8l; Wed, 28 Sep 2022 15:10:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=XRLmJyYlET7HaqUdIHzdb2by8Wkk6egPPpAUKs0LWyo=; b=nOGBmpwfEQEK 4JkyqA+NcAZ0nOIcrjeeXWT+u8lMO5g6o1HItQT6FA8sypN6e3m7c1Nu+hMPlXLH2TV70nbDFmyAi qaESUM+QzIOlK61y+CSsZ8fadaU8ldwqmumxP0UGkohibPTM94CHpcwu/PYvh/z1inKGK9LEp8GW1 UVkqLTHNs5u5m3Dozg6WIisckU/UVR573BDNldPUydbriewzaAlmpwqrWADEsvtPEHmvqMwYbrcC+ sH4/vNvPe3VGioUxBiZV++zt7ixUsYjALpnv85nto9rXV7hDxlTmGJKmu5EB2Zq3XivnOD4SO/CZm 0cNlNpY1sW7ixOEgNDrRwg==; Received: from [87.69.77.57] (port=1295 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odcRY-0005vx-OP; Wed, 28 Sep 2022 15:10:05 -0400 Date: Wed, 28 Sep 2022 22:10:00 +0300 Message-Id: <83y1u3gvsn.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <877d1nxvbw.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 28 Sep 2022 19:28:03 +0200) Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels References: <87mtak20cg.fsf@gnus.org> <877d1ntns2.fsf@metalevel.at> <877d1nxvbw.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52931 Cc: triska@metalevel.at, 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 52931@debbugs.gnu.org > From: Lars Ingebrigtsen > Date: Wed, 28 Sep 2022 19:28:03 +0200 > > Markus Triska writes: > > > Why could Eli not reproduce it though? > > Presumably he evaluated the form with the current directory in the > directory the file was in. Relative file names of images aren't expanded against the current directory. I guess this factoid is part of the problem. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 28 15:13:05 2022 Received: (at 52931) by debbugs.gnu.org; 28 Sep 2022 19:13:05 +0000 Received: from localhost ([127.0.0.1]:34712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odcUT-0002oc-9i for submit@debbugs.gnu.org; Wed, 28 Sep 2022 15:13:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odcUR-0002o9-EW for 52931@debbugs.gnu.org; Wed, 28 Sep 2022 15:13:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odcUL-0002Na-Sr; Wed, 28 Sep 2022 15:12:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=3oIFlDlzVPnRAb/I0ovKUM410yG/adWXYqm+T1pdl0U=; b=B692gBQyZvJ6 lcrXA6h+7UEdcBpdUHjTpQa9/sih4DGUMFe865zK+9pjlyPYf+ru2rPRFT/pRNFQqsOjgqKfdMuYX eyazf3mGbP1zNGy1Wtm0PmV9pa64aOxduxqnzWcco8wwLY0bo5sg+h50lmbqsbXpUMa5ScOflknh/ BbOr8+8g4n2SJxSD6fVIJJYAzDdXL6QngUoP6Sb/ZOr+yxjIZ6asMyimKs9eF2lxugShyDVTAEqvw tb2nTDHlG4067ms35iR7senG45Ezrti+lwFHQh99sYixTrRWkUkn6oV8pxQHh0GHltBeWhK/6WqLH 3S2pxW+iq/3idDsXM9MivA==; Received: from [87.69.77.57] (port=1470 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odcUH-0006HC-3j; Wed, 28 Sep 2022 15:12:56 -0400 Date: Wed, 28 Sep 2022 22:12:49 +0300 Message-Id: <83v8p7gvny.fsf@gnu.org> From: Eli Zaretskii To: Markus Triska In-Reply-To: <87o7uzfhti.fsf@metalevel.at> (message from Markus Triska on Wed, 28 Sep 2022 20:57:13 +0200) Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels References: <87mtak20cg.fsf@gnus.org> <877d1ntns2.fsf@metalevel.at> <877d1nxvbw.fsf@gnus.org> <87k05n2wxa.fsf@metalevel.at> <83zgejgx0m.fsf@gnu.org> <87o7uzfhti.fsf@metalevel.at> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52931 Cc: larsi@gnus.org, 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Markus Triska > Cc: larsi@gnus.org, 52931@debbugs.gnu.org > Date: Wed, 28 Sep 2022 20:57:13 +0200 > > Eli Zaretskii writes: > > > Do you get this if the image file name is in absolute form, with all > > the leading directories? > > No: Using an absolute file name, or a file name that starts with "~" > works as expected. For you, using a relative file also worked? It will, if the file is in the "right" place. What do you think Emacs does when you use relative image file names in create-image? From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 28 16:09:30 2022 Received: (at 52931) by debbugs.gnu.org; 28 Sep 2022 20:09:30 +0000 Received: from localhost ([127.0.0.1]:34813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oddN3-0000EW-QK for submit@debbugs.gnu.org; Wed, 28 Sep 2022 16:09:30 -0400 Received: from [78.47.144.35] (port=60484 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oddMz-0000EL-Fv for 52931@debbugs.gnu.org; Wed, 28 Sep 2022 16:09:25 -0400 Received: by metalevel.at (Postfix, from userid 1000) id 1BD429C754; Wed, 28 Sep 2022 22:09:24 +0200 (CEST) From: Markus Triska To: Eli Zaretskii Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels References: <87mtak20cg.fsf@gnus.org> <877d1ntns2.fsf@metalevel.at> <877d1nxvbw.fsf@gnus.org> <87k05n2wxa.fsf@metalevel.at> <83zgejgx0m.fsf@gnu.org> <87o7uzfhti.fsf@metalevel.at> <83v8p7gvny.fsf@gnu.org> Date: Wed, 28 Sep 2022 22:09:24 +0200 In-Reply-To: <83v8p7gvny.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 28 Sep 2022 22:12:49 +0300") Message-ID: <87bkqzclcb.fsf@metalevel.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eli Zaretskii writes: > What do you think Emacs does when you use relative image file names in > create-image? I would hope it does the same thing it does for every other function I know where relative file names are used: Use the file from the current working directory, i.e., default-directory. However, as fa [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 52931 Cc: larsi@gnus.org, 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Eli Zaretskii writes: > What do you think Emacs does when you use relative image file names in > create-image? I would hope it does the same thing it does for every other function I know where relative file names are used: Use the file from the current working directory, i.e., default-directory. However, as far as I can tell, create-image is currently unexpectedly not doing this reliably, or at least not on OSX, even though it seems to do it on your system. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 29 01:44:19 2022 Received: (at 52931) by debbugs.gnu.org; 29 Sep 2022 05:44:19 +0000 Received: from localhost ([127.0.0.1]:35650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odmLK-00041l-T6 for submit@debbugs.gnu.org; Thu, 29 Sep 2022 01:44:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odmLI-00041V-V6 for 52931@debbugs.gnu.org; Thu, 29 Sep 2022 01:44:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odmLD-00071Q-0D; Thu, 29 Sep 2022 01:44:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TblLf9TOvaJp1muOl7UgVb8Knlsp6wq1jZRNfoEPFyQ=; b=pZ+iidWxOiPt hkb2aJBOjFZvdsvuI/Vs0/Iyds9TA27+PYakfh5hbrvialJDIttg1Bm+8lL1LMNfZ4rXD7TDnleZU 7DLrj9gp+LM/VKs57fEWTXpa7Ey4vmBjymwiNbfytXbkkbzGMytgN8/I6WKGnBfZABy1pVUp7dzMt JHstB5/ZVXGyFnLHm6E+s/UoIPRXkNJ5wCZF5YYwwbKK9eUAmVzmz2nBJ+DPydiXbKGQWETF6vg7f /YALK2hP4ND/SMssuA2hKuaZfSljLwXm6Z8zU1Jq88U7EaShxU4ReRXS+7Vs5MR02R+MBluWNicNz yYtBlrdv+ETdpp+aiFgxwg==; Received: from [87.69.77.57] (port=3938 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odmLC-0001gd-EE; Thu, 29 Sep 2022 01:44:10 -0400 Date: Thu, 29 Sep 2022 08:44:06 +0300 Message-Id: <83tu4qhh09.fsf@gnu.org> From: Eli Zaretskii To: Markus Triska In-Reply-To: <87bkqzclcb.fsf@metalevel.at> (message from Markus Triska on Wed, 28 Sep 2022 22:09:24 +0200) Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels References: <87mtak20cg.fsf@gnus.org> <877d1ntns2.fsf@metalevel.at> <877d1nxvbw.fsf@gnus.org> <87k05n2wxa.fsf@metalevel.at> <83zgejgx0m.fsf@gnu.org> <87o7uzfhti.fsf@metalevel.at> <83v8p7gvny.fsf@gnu.org> <87bkqzclcb.fsf@metalevel.at> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52931 Cc: larsi@gnus.org, 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Markus Triska > Cc: larsi@gnus.org, 52931@debbugs.gnu.org > Date: Wed, 28 Sep 2022 22:09:24 +0200 > > Eli Zaretskii writes: > > > What do you think Emacs does when you use relative image file names in > > create-image? > > I would hope it does the same thing it does for every other function I > know where relative file names are used: Use the file from the current > working directory, i.e., default-directory. No, it doesn't do that. It looks up relative file names along image-load-path. The reason is that image files are many times displayed on the tool bar and the fringes, which are not specific to a buffer, and thus we cannot possibly ensure default-directory is always set to the right place when we display those. > However, as far as I can tell, create-image is currently > unexpectedly not doing this reliably, or at least not on OSX, even > though it seems to do it on your system. I used an absolute file name in my tests, because, obviously, the file you posted doesn't live here in the same directory as on your system. So I think we now understand the reason for the problem, and there's nothing else we should do here. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 29 09:15:11 2022 Received: (at 52931) by debbugs.gnu.org; 29 Sep 2022 13:15:11 +0000 Received: from localhost ([127.0.0.1]:36611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odtNe-0004US-Kn for submit@debbugs.gnu.org; Thu, 29 Sep 2022 09:15:11 -0400 Received: from mail-oa1-f43.google.com ([209.85.160.43]:37641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odtNc-0004UC-6o for 52931@debbugs.gnu.org; Thu, 29 Sep 2022 09:15:08 -0400 Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-12c8312131fso1758275fac.4 for <52931@debbugs.gnu.org>; Thu, 29 Sep 2022 06:15:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date; bh=6tg0v8TzsvPEIeEwUWK8gCNj6ezCyt7h9rtH4OoG6GY=; b=K9vwuPp0+QZwVbNWAdq+v2432r84qK5ixz2sOHamWCe2M7XZ6VrEF/CSkZ/TjfHHKd t1898pjAFDQiuPon2V5mPd6g+QrIeB3RZDQ7loItyvKHe8S6OKiXPkRdwYFgJ3bH3HUs V0cSmf5cuADZURyAW0PpnIkwfJdPghakkuBjoF5JmvFjvVXquw+dQ/uf3X/ymvm9M4lJ CKrrGSaKgDZ2eiXnscmzvo6ah9vfAg26RL6v0WX8fuV07Ur7LZX+nkwOnjV3+6ceiLDW NME8gqAAGNTD5zzYqR/3ML2KhPPr7zZETcAjSMbsNvJeHLXhrgllG7gF7Z233iK6qCq+ jUlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date; bh=6tg0v8TzsvPEIeEwUWK8gCNj6ezCyt7h9rtH4OoG6GY=; b=LUpOFk6ZQlKHzrPFiLjTmS/ELmOCpISacvVYfuwQw1e8XLPThXuopkT/TQ4iMDxufZ GsBAhyg/5jidkUHpzDx58EJWN1V27bmfRqv1ETehWA8sDV+5lkQXFs5VeIYOOpH50KDS m20039ikbRU9wpk+ecgfywDylfGCgHJHeGJGIdL8/v/rIqXq9AZj3KTzn8DJLVOEul3k gLRXLmMeY35zEC2VAqpsY9cQSYVSMqT46wACJk8Pps+YgupjVMTye/sUxb8lBoCkPn0N 190M+DRybnaoIZTbd21Ug8QzmV0qjkXgI3+QsJFO1OR92HLphxAKBn0qwC8ox68B7lPV xlsg== X-Gm-Message-State: ACrzQf2SV6pneeIeMHsd6H428fmuSrTTz6UYTC+2dbHK6DbAXM695dMs vq004ODlIw3pFvFHK0kRz13My/oBP+kgG8d78WO333TU X-Google-Smtp-Source: AMsMyM6H9uPecGE3U4VnBnKkZpUeYjaQTxQ635sqGhjZipCGzqbP28kNasQVoEGNbgcrC/e5KoAXfvS+3Z1+iNXUbzg= X-Received: by 2002:a05:6870:46a6:b0:12d:130c:2fd5 with SMTP id a38-20020a05687046a600b0012d130c2fd5mr8216188oap.92.1664457302358; Thu, 29 Sep 2022 06:15:02 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 29 Sep 2022 06:15:01 -0700 From: Stefan Kangas In-Reply-To: <83tu4qhh09.fsf@gnu.org> References: <87mtak20cg.fsf@gnus.org> <877d1ntns2.fsf@metalevel.at> <877d1nxvbw.fsf@gnus.org> <87k05n2wxa.fsf@metalevel.at> <83zgejgx0m.fsf@gnu.org> <87o7uzfhti.fsf@metalevel.at> <83v8p7gvny.fsf@gnu.org> <87bkqzclcb.fsf@metalevel.at> <83tu4qhh09.fsf@gnu.org> X-Hashcash: 1:20:220929:larsi@gnus.org::h1Un4cDHyPReNPJ5:3PvH MIME-Version: 1.0 Date: Thu, 29 Sep 2022 06:15:01 -0700 Message-ID: Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels To: Eli Zaretskii , Markus Triska Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52931 Cc: larsi@gnus.org, 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > No, it doesn't do that. It looks up relative file names along > image-load-path. The reason is that image files are many times > displayed on the tool bar and the fringes, which are not specific to a > buffer, and thus we cannot possibly ensure default-directory is always > set to the right place when we display those. The `create-image' docstring says: Image file names that are not absolute are searched for in the "images" sub-directory of =E2=80=98data-directory=E2=80=99 and =E2=80=98x-bitmap-file-path=E2=80=99 (in that order). Does this need clarifying? From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 29 09:29:12 2022 Received: (at 52931) by debbugs.gnu.org; 29 Sep 2022 13:29:12 +0000 Received: from localhost ([127.0.0.1]:36673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odtbE-0004sG-0Y for submit@debbugs.gnu.org; Thu, 29 Sep 2022 09:29:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odtbB-0004s3-Q2 for 52931@debbugs.gnu.org; Thu, 29 Sep 2022 09:29:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35562) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odtb5-0003jo-GW; Thu, 29 Sep 2022 09:29:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ztSO8XwHBBAmyQDjDU/T/so08Dr6CsI1i8mHX7tWjjk=; b=oXMkoMvyV05YAKLlONxz WIVTNf5WQ5yZbk+s2u5W2JucFRH5eqsjxaoAAT8jfXWBph0NMqCrZ4RQ9YOhZigm601VfNYXr5CMQ GPd+nSV8iS8EHKNSLLcNMXjr1JcNqzzgD9o/ZAxC4IJ+Wgn2pRyPzOVulGBh08wtgXwbmNJzxj8ak mHgMjS1F9pHLp/mh588vX3/Bm6MS2Abu+ONPKeNPOWBBDmXyRptYWMHDplvJSoaaBwLqTUXw0ddn/ hyfmk9HwMIjTl0WvGPzJ/VOZt7+7l/c/FSgeyvLpbhuV+JKooM8K2FqmS3nc/PtjjgwDFyJtynght +ECJbYGacgHQiA==; Received: from [87.69.77.57] (port=4928 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odtb4-00062p-FX; Thu, 29 Sep 2022 09:29:03 -0400 Date: Thu, 29 Sep 2022 16:28:57 +0300 Message-Id: <83mtaifgx2.fsf@gnu.org> From: Eli Zaretskii To: Stefan Kangas In-Reply-To: (message from Stefan Kangas on Thu, 29 Sep 2022 06:15:01 -0700) Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels References: <87mtak20cg.fsf@gnus.org> <877d1ntns2.fsf@metalevel.at> <877d1nxvbw.fsf@gnus.org> <87k05n2wxa.fsf@metalevel.at> <83zgejgx0m.fsf@gnu.org> <87o7uzfhti.fsf@metalevel.at> <83v8p7gvny.fsf@gnu.org> <87bkqzclcb.fsf@metalevel.at> <83tu4qhh09.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52931 Cc: larsi@gnus.org, triska@metalevel.at, 52931@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stefan Kangas > Date: Thu, 29 Sep 2022 06:15:01 -0700 > Cc: larsi@gnus.org, 52931@debbugs.gnu.org > > Eli Zaretskii writes: > > > No, it doesn't do that. It looks up relative file names along > > image-load-path. The reason is that image files are many times > > displayed on the tool bar and the fringes, which are not specific to a > > buffer, and thus we cannot possibly ensure default-directory is always > > set to the right place when we display those. > > The `create-image' docstring says: > > Image file names that are not absolute are searched for in the > "images" sub-directory of ‘data-directory’ and > ‘x-bitmap-file-path’ (in that order). > > Does this need clarifying? I added a more accurate sentence there: "Create an image from FILE-OR-DATA. FILE-OR-DATA is an image file name or image data. If it is a relative file name, the function will look for it along `image-load-path'. But I failed to remove the one you mention, which is somewhat misleading. Now done. From unknown Mon Aug 18 04:43:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 28 Oct 2022 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator