unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: "Rudolf Adamkovič" <salutis@me.com>
Cc: 49688@debbugs.gnu.org
Subject: bug#49688: 28.0.50; Attempting to show images crashes Emacs
Date: Sun, 25 Jul 2021 00:22:24 +0100	[thread overview]
Message-ID: <YPygsDaJEU/fSCIg@idiocy.org> (raw)
In-Reply-To: <m25ywzfi1g.fsf@me.com>

On Sun, Jul 25, 2021 at 12:44:59AM +0200, Rudolf Adamkovič wrote:
> TL;DR The images show pixelated.
> 
> Every modern Mac has a HiDPI (a.k.a. Retina) screen, where each point
> (logical pixel) maps to 4 physical pixels, a.k.a. 2× scale. I in the
> attached small screenshot, please compare the sharpness of the image with
> the text next to it. Emacs renders the image at 1× and the text at 2×.

Without knowing more about the image and how it's being displayed I
can't say whether there's anything wrong with that.

Images are, by default, displayed at 1x resolution so they will appear
the same size on retina and non-retina screens.

If you want to display images with pixels at a 1:1 ratio you need to
scale the image by (/ 1 (frame-scale-factor)), but that will only
work on Emacs 28.

This is how Emacs has always worked on retina screens, this patch
shouldn't change that. If it does then there's something else wrong,
but I don't see any change in image display here.

-- 
Alan Third





  reply	other threads:[~2021-07-24 23:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-21 22:34 bug#49688: 28.0.50; Attempting to show images crashes Emacs Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-22  7:52 ` Alan Third
2021-07-22 10:33   ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-22 19:50     ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-22 21:01       ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-22 22:11         ` Alan Third
2021-07-23 22:52           ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-23 23:27             ` Alan Third
2021-07-24 16:09               ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-24 16:52                 ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-24 17:05                   ` Alan Third
2021-07-24 22:44                     ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-24 23:22                       ` Alan Third [this message]
2021-07-25 23:45                         ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-26 20:05                           ` Alan Third
2021-10-20 15:22                             ` Stefan Kangas
2021-10-20 20:13                               ` Alan Third

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=YPygsDaJEU/fSCIg@idiocy.org \
    --to=alan@idiocy.org \
    --cc=49688@debbugs.gnu.org \
    --cc=salutis@me.com \
    /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).