From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Ponce via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74725: 31.0.50; image-scaling-factor is ignored by create-image Date: Sat, 7 Dec 2024 13:41:37 +0100 Message-ID: References: <2304cad6-884f-4528-a85e-ab9c06b80016@orange.fr> Reply-To: David Ponce Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3971"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: 74725@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 07 13:42:25 2024 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 1tJu8e-0000tk-Ri for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Dec 2024 13:42:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJu8K-0007bs-IN; Sat, 07 Dec 2024 07:42:04 -0500 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 1tJu8I-0007bk-NX for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:42:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tJu8H-0003o4-Ux for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:42:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:MIME-Version:Date:To:In-Reply-To:References:Subject; bh=xdn/LHDi2g1k4twbhOqZpyQ0n62LmG+U7U7maSBCaoQ=; b=YX82t5yeTbUxmBuUGQgwUi3TjqxKZQ6GUNYM8oJB4JhlGEhXbsM7oAH9wRw+JUOfX3Fg+I6/589RXZtSWXaJJDGRM3NyG/6mv+6trarF8cROFb2WV0B26zRr1NC9gPgkM8ePTlnpNbv0t8z8cGpdErW3+nyvugyFyNuG5Szo8Z8N6UyTYS32J/GsbcndJG2D7TZpU5ZRAwOeJsOHPVj0E1mlHPY/jy0d7C5zwO1P/Gp9NRxAtO2rdzf3fN+5HSiqtarkdEkdANVRLaF6hJCZ8/JDsBM0noYD9bbbhLAagZ7q9FgUOxV7VrJ/qtgTJhxlE/4hNn98BYDhouYlHuSFjg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJu8H-0002nl-PD for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:42:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <2304cad6-884f-4528-a85e-ab9c06b80016@orange.fr> Resent-From: David Ponce Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Dec 2024 12:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74725 X-GNU-PR-Package: emacs Original-Received: via spool by 74725-submit@debbugs.gnu.org id=B74725.173357530310737 (code B ref 74725); Sat, 07 Dec 2024 12:42:01 +0000 Original-Received: (at 74725) by debbugs.gnu.org; 7 Dec 2024 12:41:43 +0000 Original-Received: from localhost ([127.0.0.1]:45838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJu7z-0002n7-3n for submit@debbugs.gnu.org; Sat, 07 Dec 2024 07:41:43 -0500 Original-Received: from smtp-19.smtpout.orange.fr ([80.12.242.19]:49005 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJu7v-0002mv-0M for 74725@debbugs.gnu.org; Sat, 07 Dec 2024 07:41:41 -0500 Original-Received: from [192.168.1.21] ([90.112.40.65]) by smtp.orange.fr with ESMTPA id Ju7ttPbH5ixoAJu7tt23zg; Sat, 07 Dec 2024 13:41:37 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1733575297; bh=xdn/LHDi2g1k4twbhOqZpyQ0n62LmG+U7U7maSBCaoQ=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=UvbsaimEjmjwgjZlewRwjh19oFRuigrxNfR/Pw0wGDQOKuwRPk36add37MfsJEG1N oEEj44ncllk29IsLtER8gmORDej2UoWmQzRV9jss6O+oCPU9thul08VSZ5I2F5DSUC +e+Np8TFo6Vr4Rg/RaKoHncFbaVLCPeS8cmSFxOnAveuZ1QsW6MRqrNIFKCusqPITI MNPD7aVaYggmADgnLPJq7yx5xSi3zow3/Mv3pcNXzE426qjBtoaC3KVpc7jJ/PEoYx ghs7VrE7dNXCQp84FbmRwlnd2Tar4sabeetVROJ+8DCk2RMzfDx6BSSpbpGDcFskpp 6AYbIFi5V/Z6Q== X-ME-Helo: [192.168.1.21] X-ME-Auth: ZGFfdmlkQHdhbmFkb28uZnI= X-ME-Date: Sat, 07 Dec 2024 13:41:37 +0100 X-ME-IP: 90.112.40.65 Content-Language: fr, en-US 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296555 Archived-At: Hello, After more investigation I found the issue is not in image.el, but is due to image caching. If I flush the image cache when I change the value of `image-scaling-factor' the result is as expected: (let* ((image-scaling-factor 2.0) (image (find-image '((:file "icons/hicolor/scalable/apps/emacs.svg"))))) (image-flush image t) (image-size (find-image '((:file "icons/hicolor/scalable/apps/emacs.svg"))) t)) (96 . 96) ;; Image is used from cache, size is not updated. (let* ((image-scaling-factor 3.0) (image (find-image '((:file "icons/hicolor/scalable/apps/emacs.svg"))))) ;; (image-flush image t) (image-size (find-image '((:file "icons/hicolor/scalable/apps/emacs.svg"))) t)) (96 . 96) ;; Image not in cache, size is updated. (let* ((image-scaling-factor 3.0) (image (find-image '((:file "icons/hicolor/scalable/apps/emacs.svg"))))) (image-flush image t) (image-size (find-image '((:file "icons/hicolor/scalable/apps/emacs.svg"))) t)) (144 . 144) Thanks!