unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dov Grobgeld <dov.grobgeld@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: Resolution for rasterizing svg images
Date: Tue, 8 Dec 2020 16:41:00 +0200	[thread overview]
Message-ID: <CA++fsGHJdsuY8ef4CP9xTnMJJtfhQ9GRbV-K_sQD_askmwqOpA@mail.gmail.com> (raw)
In-Reply-To: <87360gjs15.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]

Images indeed scale down, but they don't scale up to fill the available
space.

But as I mentioned, when loading svg's you have two independent steps. The
first step is the rasterization where you turn vector graphics into raster.
There is a separate step of how you scale the resulting raster image. It
makes sense that the second step is identical whether the source is an svg
or png, but my claim is that the first step should be influenced by the
desktop dpi.

I'll open a bug about it as Stefan suggested.

Regards,




On Tue, Dec 8, 2020 at 4:23 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
> >> What is the resolution used when rasterizing svg files when loading them
> >> into image-mode? I have a hdpi monitor, but the desktop dpi seems to be
> >> ignored when loading an svg image, and therefore the raster image is too
> >> smal. Is there anyway of manually overriding the dpi setting used? Note
> >> that this is not the same as scaling the rasterized image.
> >
> > Please report this as a bug: the end user shouldn't have to do
> > that manually.
>
> `create-image' should scale the image automatically, whether it's svg or
> not (if `image-scaling-factor' is `auto').
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no
>

[-- Attachment #2: Type: text/html, Size: 2709 bytes --]

      reply	other threads:[~2020-12-08 14:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-08 11:47 Resolution for rasterizing svg images Dov Grobgeld
2020-12-08 14:17 ` Stefan Monnier
2020-12-08 14:23   ` Lars Ingebrigtsen
2020-12-08 14:41     ` Dov Grobgeld [this message]

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=CA++fsGHJdsuY8ef4CP9xTnMJJtfhQ9GRbV-K_sQD_askmwqOpA@mail.gmail.com \
    --to=dov.grobgeld@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /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).