bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58101: 28.2; image-size nonsensical


From: Thomas Hühn
Subject: bug#58101: 28.2; image-size nonsensical
Date: Tue, 27 Sep 2022 14:25:34 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]