<div dir="ltr">Thanks.. that makes sense. It's too bad such an important issue is not more "correctly" approachable, e.g. setting a filter option on rsvg or changing the way cairo works to composite images. I appreciate your suggestion of rendering to a higher resolution canvas.</div><div class="gmail_extra"><br><div class="gmail_quote">On 24 July 2015 at 19:34, Emmanuel Pacaud <span dir="ltr"><<a href="mailto:emmanuel.pacaud@lapp.in2p3.fr" target="_blank">emmanuel.pacaud@lapp.in2p3.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<span class=""><br>
<br>
Le ven. 24 juil. 2015 à 5:38, Samuel Williams <<a href="mailto:space.ship.traveller@gmail.com" target="_blank">space.ship.traveller@gmail.com</a>> a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes, it has an embedded PNG file. IT's stupidly high resolution, but the reality is it isn't downsampling it well for some reason with Cairo/RSVG and it isn't obvious how to fix this.<br>
<br>
<a href="https://drive.google.com/file/d/0B4svTYmRKR87eVR5LWoxQV9QQlU/view?usp=sharing" rel="noreferrer" target="_blank">https://drive.google.com/file/d/0B4svTYmRKR87eVR5LWoxQV9QQlU/view?usp=sharing</a><br>
</blockquote>
<br></span>
It looks like it is a limitation in both cairo and librsvg. In cairo, to my knowledge, the default filter is NEAREST, and it is not possible to define a different default.<br>
<br>
In librsvg, filter can not be changed.<br>
<br>
A possible workaround for you would be to use an intermediate bitmap surface bigger than the final one, render the SVG on it, then use it as a pattern with filter set to BEST on the small final surface.<br>
<br>
Cheers,<br>
<br>
Emmanuel.<br>
<br>
</blockquote></div><br></div>