all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Resolution for rasterizing svg images
@ 2020-12-08 11:47 Dov Grobgeld
  2020-12-08 14:17 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Dov Grobgeld @ 2020-12-08 11:47 UTC (permalink / raw)
  To: emacs-devel

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

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.

Thanks!
Dov

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Resolution for rasterizing svg images
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2020-12-08 14:17 UTC (permalink / raw)
  To: Dov Grobgeld; +Cc: emacs-devel

> 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.


        Stefan




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Resolution for rasterizing svg images
  2020-12-08 14:17 ` Stefan Monnier
@ 2020-12-08 14:23   ` Lars Ingebrigtsen
  2020-12-08 14:41     ` Dov Grobgeld
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-08 14:23 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Dov Grobgeld, emacs-devel

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Resolution for rasterizing svg images
  2020-12-08 14:23   ` Lars Ingebrigtsen
@ 2020-12-08 14:41     ` Dov Grobgeld
  0 siblings, 0 replies; 4+ messages in thread
From: Dov Grobgeld @ 2020-12-08 14:41 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Stefan Monnier, emacs-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-08 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.