From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#34024: Segfault when resizing SVG images Date: Fri, 11 Jan 2019 09:27:01 +0000 Message-ID: <20190111092701.GA23164@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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1547198776 2473 195.159.176.226 (11 Jan 2019 09:26:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2019 09:26:16 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) Cc: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel , 34024@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 11 10:26:11 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 esmtp (Exim 4.84_2) (envelope-from ) id 1ght4q-0000V3-7X for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jan 2019 10:26:08 +0100 Original-Received: from localhost ([127.0.0.1]:42560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ght6x-0008PD-7W for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jan 2019 04:28:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ght6l-0008L6-RU for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 04:28:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ght6g-0001Gu-Tb for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 04:28:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55322) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ght6g-0001Fp-OO for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 04:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ght6g-00040V-IX for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 04:28: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: Fri, 11 Jan 2019 09:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34024 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 34024-submit@debbugs.gnu.org id=B34024.154719883315308 (code B ref 34024); Fri, 11 Jan 2019 09:28:02 +0000 Original-Received: (at 34024) by debbugs.gnu.org; 11 Jan 2019 09:27:13 +0000 Original-Received: from localhost ([127.0.0.1]:54599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ght5s-0003yq-SJ for submit@debbugs.gnu.org; Fri, 11 Jan 2019 04:27:13 -0500 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:37115) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ght5q-0003ya-JA for 34024@debbugs.gnu.org; Fri, 11 Jan 2019 04:27:11 -0500 Original-Received: by mail-wm1-f50.google.com with SMTP id g67so1647148wmd.2 for <34024@debbugs.gnu.org>; Fri, 11 Jan 2019 01:27:10 -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=CofGBTzLW246GFMzB/r/nVIma+b9Yp3gwfBZFmWhbNo=; b=GYrwe0T7Or6eQ45J90ujBLAiD48b6GED+BIeyAN5OzSYpdtUmnthHrd0rjxQcSq7m1 BW+D1b/5677SpGY7dsQFQR72rE9iIwDb76KKl8NClJWMvynfwQv4LLuXufghY/iuaO3K uAyCao9Z9PoOoj6ke+oTNdytA8Oq0CAI+X6S0wTa2YuR7QJGp1vF9Mrt7FWAbHkn81QH ftOe9KW/ybGOidSZSmb0cS28Df9pFIJ91ggHXvPxPPCn550JaqBQTSMe80GW1f2+hCAv 5XlsZzllqwldr3RyJ2IC5oMS71n1tRxwI6IG+1tJ6RS9Ra538ty8qMCklUKvZDd5eDSk Qsig== 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=CofGBTzLW246GFMzB/r/nVIma+b9Yp3gwfBZFmWhbNo=; b=nqqEdP/vxGskYXFoag+YHBphZUlurw5fsJtyXTHjrTiDU5TFebxGAFua8ulATJazgV nRZ3qs9CHfj7sutpPPNlsdaGvZ6u2eAhEnLv86G6v3panSOYdL3mjyq+FoOmBRI1FYXk Q9b+lQ3qHF5j583mgudNdz87KnCyWquz+/QrnWxzw0LKpKWpa+CSqY6VzkfjAtBtVK3S hWbk9A/+m+vAptyZDSusH0sIit7WpBf+BG2C+1eFE4ZUdty26xo9c20XWNHq7JFATMcV Yv29K51+6xSntuCiLhQvfM3/oycI/WfnVCZJFTPSPLmBKXnHntGwxryGxwvfIthaBG6i D8aA== X-Gm-Message-State: AJcUukeRnsMfBes/zCBEzw/s9tWTp92rtZCRSmSijuJN3cK7ayetNXqk QoQioLbnRYjTGcCAsG90g9s= X-Google-Smtp-Source: ALg8bN6LX8BircppCosLy9X2kYbbRmrx59wuTmOA/qkBe+y50ke2WChG8OxLTjPhv1jX0rL9FYf9ug== X-Received: by 2002:a1c:7706:: with SMTP id t6mr1401506wmi.57.1547198823963; Fri, 11 Jan 2019 01:27:03 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-9c2e-c8ce-e8b0-d62d.holly.idiocy.org. [2001:8b0:3f8:8129:9c2e:c8ce:e8b0:d62d]) by smtp.gmail.com with ESMTPSA id 202sm24050003wmt.8.2019.01.11.01.27.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 01:27:03 -0800 (PST) Content-Disposition: inline In-Reply-To: <83muo7hck9.fsf@gnu.org> 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:154337 Archived-At: On Fri, Jan 11, 2019 at 09:35:02AM +0200, Eli Zaretskii wrote: > > Cc: 34024@debbugs.gnu.org > > From: Clément Pit-Claudel > > Date: Thu, 10 Jan 2019 18:27:53 -0500 > > > > > And we hope we will soon > > > have on master image resize capability that doesn't need ImageMagick, > > > courtesy of Alan Third. > > > > This sounds very exciting. I tried the latest master, which IIUC contains (some of?) Alan's changes, but it doesn't fix the issue yet. > > Please read the thread discussing Alan's code. I think you are > supposed to disable ImageMagick to see the native resizing in action. > Alan, please correct me if I'm wrong. Yes, at the moment image-mode still defaults to ImageMagick, and resizing any image will fallback to ImageMagick if available. More work needs to be done in image.el (and possibly image-mode.el, I only realised this second file exists last week) to stop it using ImageMagick when it doesn’t need to. One thing to note about SVG images is that the native resizing only handles bitmaps, so the SVG is converted to a bitmap, then resized. 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. -- Alan Third