GNU bug report logs - #58101
28.2; image-size nonsensical

Previous Next

Package: emacs;

Reported by: Thomas Hühn <t <at> 2uo.de>

Date: Mon, 26 Sep 2022 20:07:01 UTC

Severity: normal

Tags: notabug

Found in version 28.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Thomas Hühn <t <at> 2uo.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 58101 <at> debbugs.gnu.org
Subject: bug#58101: 28.2; image-size nonsensical
Date: Tue, 27 Sep 2022 14:25:34 +0200
On 27.09.2022 13:57, Lars Ingebrigtsen wrote:
> Can you try
> 
> (image-size (create-image "/tmp/two_key_system_2x.png" nil nil :scale 1.4) :pixels)
> 
> It rather sounds like `image-size' on Windows doesn't work when there's
> scaling involved and then reports the size in character units instead.


With emacs -Q:

(image-size (create-image "two_key_system_2x.png") :pixels)

--> (1549 . 758)


(let ((img (create-image "two_key_system_2x.png")))
  (image-size img t))

--> (1549 . 758)

(image-size (create-image "/tmp/two_key_system_2x.png" nil nil :scale 
1.4) :pixels)

--> (1807 . 884)

Thanks!
Thomas
-- 
Wunderschön illustrierte Kinderbücher:
https://www.schoene-kinderbuecher.de
Weblog:
https://www.thomas-huehn.de




This bug report was last modified 2 years and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.