From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#34024: Segfault when resizing SVG images Date: Tue, 12 Feb 2019 23:00:59 +0000 Message-ID: <20190212230059.GA26207@breton.holly.idiocy.org> References: <42f6f8f3-6313-0583-2126-6ffdc4cff375@gmail.com> <837efdi3ks.fsf@gnu.org> <834laginn0.fsf@gnu.org> <53d96c09-c7c7-c1f7-d500-70148e6d6f0f@gmail.com> <83muo7hck9.fsf@gnu.org> <20190111092701.GA23164@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="266509"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.2 (2019-01-07) Cc: 34024@debbugs.gnu.org To: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 13 00:02:45 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gth4e-0017ES-OW for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Feb 2019 00:02:44 +0100 Original-Received: from localhost ([127.0.0.1]:47426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gth4d-0002Cb-Nm for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Feb 2019 18:02:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gth40-0001qr-8i for bug-gnu-emacs@gnu.org; Tue, 12 Feb 2019 18:02:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gth3y-0003X6-UX for bug-gnu-emacs@gnu.org; Tue, 12 Feb 2019 18:02:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46093) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gth3y-0003Wl-Ml for bug-gnu-emacs@gnu.org; Tue, 12 Feb 2019 18:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gth3y-0007Je-Ec for bug-gnu-emacs@gnu.org; Tue, 12 Feb 2019 18:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Feb 2019 23:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34024 X-GNU-PR-Package: emacs Original-Received: via spool by 34024-submit@debbugs.gnu.org id=B34024.155001247228061 (code B ref 34024); Tue, 12 Feb 2019 23:02:02 +0000 Original-Received: (at 34024) by debbugs.gnu.org; 12 Feb 2019 23:01:12 +0000 Original-Received: from localhost ([127.0.0.1]:45374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gth3A-0007IX-9a for submit@debbugs.gnu.org; Tue, 12 Feb 2019 18:01:12 -0500 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:46115) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gth37-0007IH-Og for 34024@debbugs.gnu.org; Tue, 12 Feb 2019 18:01:10 -0500 Original-Received: by mail-wr1-f46.google.com with SMTP id l9so326819wrt.13 for <34024@debbugs.gnu.org>; Tue, 12 Feb 2019 15:01:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=zPWg/xkZG5wPWVf9bUSLZ7fKUxiX6ugsve2RimzZ3mc=; b=hA6yNdMa4i2Fbs0jwNdxHx6pxIibDwLHEUsxlqIvSk+tUnJSxebBbKMWuXLnILKO+I JcCaP86ihgR75RHjdFRi3T24YqUj3za0lhaZsl7R0l3Hzx+xOMcTYRNeueHwwx6tZv1e y0bHZtilS1JK6q5jHEFMymGjH5+RX8phYo4w2sQ1KcGE7HoQsGDMoJaMIszNTCDkBkHX lrNWgfVaZCsV5f6o8QGVpWZ0cDzNj39RqMk8U18Q4v29iGqwLjbAgXtzXhFvxuUyUGtl O5Ynx6HcGoUjKeFki1JVkrlOpEVG1dfDfro6dGPWQCL4iglBip71szxP3xkzxR4mm+gL +V+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=zPWg/xkZG5wPWVf9bUSLZ7fKUxiX6ugsve2RimzZ3mc=; b=j2KDguidw0Eu0eVE4i9StJD7YacCUAOwG5LIUqRm3kfHZXvEF5W8w0cbh7IM52BPSO NQGAw38DrpPRCTRvFpyn7AX8EsPXuAcOybJHQCl0CuDChWXkboLg/j8JPx+KTXySJtFs D7hQkndB1Cz+bR5G1L7oXdZdRVYqnCnK53/n48IDxOxBNUOYvkBPZGLZx8SgdUd0Dolw Qs0OljKZ8NFlcHPS+yvTqali3tawtwXZdbpz/7HXqe2voxy00umA3UKxa35rwu/OzAdZ xQik/SH0js3oJKw0Z+4AMZMcajnsXJZNfI38JeQQNXHPcWgSqWHKTICwZdtNUTJN0cLB Cwcg== X-Gm-Message-State: AHQUAuZ9AOKGMqRW/CCnzWgQPFdLCi7v9qjSHbEMxlvep+87/atPQUTw zTA7ztskBSecrkVauFDQvT0= X-Google-Smtp-Source: AHgI3IYKAfABoNewvsKNPxhjBhBeRK3rNHQ1jTB0+9y0eLn6cJd7ykudWgdexrn08iYE/K+0MjpkNQ== X-Received: by 2002:adf:dc10:: with SMTP id t16mr4813102wri.40.1550012463596; Tue, 12 Feb 2019 15:01:03 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-1929-c54e-1a9e-9ede.holly.idiocy.org. [2001:8b0:3f8:8129:1929:c54e:1a9e:9ede]) by smtp.gmail.com with ESMTPSA id h71sm8837417wme.20.2019.02.12.15.01.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 15:01:01 -0800 (PST) Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155389 Archived-At: 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