GNU bug report logs - #34024
ImageMagick: Segfault when resizing SVG images

Previous Next

Package: emacs;

Reported by: Clément Pit-Claudel <cpitclaudel <at> gmail.com>

Date: Wed, 9 Jan 2019 22:02:01 UTC

Severity: normal

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #31 received at 34024 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Clément Pit-Claudel <cpitclaudel <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 34024 <at> debbugs.gnu.org
Subject: Re: bug#34024: Segfault when resizing SVG images
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




This bug report was last modified 5 years and 244 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.