Subject: Re: bug#58101: 28.2; image-size nonsensical

From: Thomas Hühn <[email-masked]>
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