Subject: bug#34024: Segfault when resizing SVG images

From: Alan Third <[email-masked]>
Date: Tue, 12 Feb 2019 23:00:59 +0000

On Tue, Feb 12, 2019 at 02:15:48PM -0500, Clément Pit-Claudel wrote:
> Thanks for the replies, Eli and Alan!
> 
> On 11/01/2019 04.27, Alan Third wrote:
> > librsvg and the like don’t allow you to resize SVG files when you
> > convert them to bitmaps, we’d have to use Cairo or something similar
> > for lossless resizing.
> 
> Do you mean rsvg_handle_render_cairo? (does that count as being part
> of Cairo?) That would be great.

IIRC that function interfaces with a cairo canvas, and once the SVG is
loaded into said canvas, cairo allows you to resize losslessly. I’m
unsure how we’d go from the cairo canvas to a system dependent bitmap.
It’s probably not hard, but I didn’t dig too deep into it.
-- 
Alan Third