GNU bug report logs - #52931
27.1; image-size sometimes yields a wrong image size in pixels

Previous Next

Package: emacs;

Reported by: Markus Triska <triska <at> metalevel.at>

Date: Sat, 1 Jan 2022 17:02:02 UTC

Severity: normal

Tags: notabug

Found in version 27.1

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

Bug is archived. No further changes may be made.

Full log


Message #8 received at 52931 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Markus Triska <triska <at> metalevel.at>
Cc: 52931 <at> debbugs.gnu.org
Subject: Re: bug#52931: 27.1;
 image-size sometimes yields a wrong image size in pixels
Date: Sat, 01 Jan 2022 19:09:10 +0200
> From: Markus Triska <triska <at> metalevel.at>
> Date: Sat, 01 Jan 2022 18:00:54 +0100
> 
> Dear all,
> 
> 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)

I cannot reproduce this: I get (202 . 202), both in Emacs 27.1 and in
the current master version.

Maybe this is macOS-specific?




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

Previous Next


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