Subject: Re: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 27 Sep 2022 19:28:31 +0200

Markus Triska <[email-masked]> 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.