unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Thomas Hühn" <t@2uo.de>
Cc: 58101@debbugs.gnu.org
Subject: bug#58101: 28.2; image-size nonsensical
Date: Tue, 27 Sep 2022 09:05:18 +0300	[thread overview]
Message-ID: <83tu4tjqsh.fsf@gnu.org> (raw)
In-Reply-To: <06754647-2195-d85d-1f1b-f75a59985699@2uo.de> (message from Thomas Hühn on Mon, 26 Sep 2022 20:41:45 +0200)

> Date: Mon, 26 Sep 2022 20:41:45 +0200
> From: Thomas Hühn <t@2uo.de>
> 
> * Download image https://imgs.xkcd.com/comics/two_key_system_2x.png to
>    disk
> 
> * Run (create-image "two_key_system_2x.png") --> (image :type png :file
>    "two_key_system_2x.png" :scale 1.2038461538461538 :transform-smoothing
>    t)
> 
> * Run (image-size (create-image "two_key_system_2x.png") :pixels) -->
>    (30 . 30)
> 
> Expected result: (1291 . 632)

I cannot reproduce this here.  I get the expected result.  I also get
this result from create-image:

 (image :type png :file "two_key_system_2x.png" :scale 1 :transform-smoothing t)


Is this in "emacs -Q"?  If so, what version of libpng do you have
installed there?  And what happens if you start Emacs like this:

  emacs -Q --eval "(setq w32-use-native-image-API t)"

Thanks.





  reply	other threads:[~2022-09-27  6:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-26 18:41 bug#58101: 28.2; image-size nonsensical Thomas Hühn
2022-09-27  6:05 ` Eli Zaretskii [this message]
2022-09-27  9:00   ` Thomas Hühn
2022-09-27  9:19     ` Eli Zaretskii
2022-09-27  9:21       ` Thomas Hühn
2022-09-27  9:39         ` Eli Zaretskii
2022-09-27 11:57           ` Lars Ingebrigtsen
2022-09-27 12:14             ` Eli Zaretskii
2022-09-27 12:25             ` Thomas Hühn
2022-09-27 12:28               ` Lars Ingebrigtsen
2022-09-27 12:30                 ` Thomas Hühn
2022-09-27 12:36                   ` Lars Ingebrigtsen
2022-09-27 12:50                     ` Thomas Hühn
2022-09-27 12:51                       ` Lars Ingebrigtsen
2022-09-27 14:28             ` Stefan Kangas
2022-09-27 15:41               ` Lars Ingebrigtsen
2022-09-27 15:42               ` 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=83tu4tjqsh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=58101@debbugs.gnu.org \
    --cc=t@2uo.de \
    /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).