[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using images in tabs
From: |
Alan Third |
Subject: |
Re: Using images in tabs |
Date: |
Fri, 20 Sep 2019 19:44:36 +0100 |
User-agent: |
Mutt/1.12.0 (2019-05-25) |
On Thu, Sep 19, 2019 at 03:47:12PM +0200, Lars Ingebrigtsen wrote:
> Juri Linkov <address@hidden> writes:
>
> > Meanwhile I tried to scale svg, and the result is not great.
> > Scaling up makes the image blurred, and scaling down makes the
> > image smeared.
>
> Emacs calls the svg library which generates a bunch of pixels that we
> then tell X (or whatever) to scale. This is always going to be blurry.
>
> Instead if you want to scale svg properly, you have to give a :scaling
> of 1 (and not :max-width etc) and then somehow instruct the svg library
> to render it at whatever size you want to. Perhaps altering the XML is
> the easiest...
Librsvg appears to be designed to use Cairo to do any resizing for it.
IIRC librsvg does provide a way to change the DPI, but it’s
deprecated.
I’m curious if it would be possible to use Cairo in a toolkit
independent way to resize and render SVG files. The alternative, I
suppose, would be to find a different SVG library.
--
Alan Third
- Re: Using images in tabs, (continued)
- Re: Using images in tabs, Juri Linkov, 2019/09/15
- Re: Using images in tabs, Yuri Khan, 2019/09/16
- Re: Using images in tabs, Eli Zaretskii, 2019/09/16
- Re: Using images in tabs, Juri Linkov, 2019/09/16
- Re: Using images in tabs, Lars Ingebrigtsen, 2019/09/16
- Re: Using images in tabs, Juri Linkov, 2019/09/17
- Re: Using images in tabs, Robert Pluim, 2019/09/18
- Re: Using images in tabs, Lars Ingebrigtsen, 2019/09/18
- Re: Using images in tabs, Juri Linkov, 2019/09/18
- Re: Using images in tabs, Lars Ingebrigtsen, 2019/09/19
- Re: Using images in tabs,
Alan Third <=
- Re: Using images in tabs, Clément Pit-Claudel, 2019/09/16
- Re: Using images in tabs, Eli Zaretskii, 2019/09/17
- Re: Using images in tabs, Juri Linkov, 2019/09/17