unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Markus Triska <triska@metalevel.at>
Cc: 52931@debbugs.gnu.org
Subject: bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels
Date: Tue, 27 Sep 2022 19:28:31 +0200	[thread overview]
Message-ID: <87mtak20cg.fsf@gnus.org> (raw)
In-Reply-To: <m21r1rgzll.fsf@metalevel.at> (Markus Triska's message of "Sat, 01 Jan 2022 18:00:54 +0100")

Markus Triska <triska@metalevel.at> 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.





  parent reply	other threads:[~2022-09-27 17:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-01 17:00 bug#52931: 27.1; image-size sometimes yields a wrong image size in pixels Markus Triska
2022-01-01 17:09 ` Eli Zaretskii
2022-09-27 17:28 ` Lars Ingebrigtsen [this message]
2022-09-28 17:24   ` Markus Triska
2022-09-28 17:28     ` Lars Ingebrigtsen
2022-09-28 18:09       ` Markus Triska
2022-09-28 18:43         ` Eli Zaretskii
2022-09-28 18:57           ` Markus Triska
2022-09-28 19:12             ` Eli Zaretskii
2022-09-28 20:09               ` Markus Triska
2022-09-29  5:44                 ` Eli Zaretskii
2022-09-29 13:15                   ` Stefan Kangas
2022-09-29 13:28                     ` Eli Zaretskii
2022-09-28 19:10       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtak20cg.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=52931@debbugs.gnu.org \
    --cc=triska@metalevel.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).