From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Image-conversion shims Date: Sat, 28 Sep 2019 23:20:21 +0200 Message-ID: <87r240t8x6.fsf@gnus.org> References: <87v9tctcca.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="201923"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 28 23:20:48 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEK91-000qPL-RN for ged-emacs-devel@m.gmane.org; Sat, 28 Sep 2019 23:20:47 +0200 Original-Received: from localhost ([::1]:35054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEK90-0002fm-Cd for ged-emacs-devel@m.gmane.org; Sat, 28 Sep 2019 17:20:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58179) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEK8i-0002em-7L for emacs-devel@gnu.org; Sat, 28 Sep 2019 17:20:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEK8h-00080H-4A for emacs-devel@gnu.org; Sat, 28 Sep 2019 17:20:28 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:59658) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iEK8g-0007yp-Tj for emacs-devel@gnu.org; Sat, 28 Sep 2019 17:20:27 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEK8c-0007EI-24; Sat, 28 Sep 2019 23:20:24 +0200 In-Reply-To: (=?utf-8?Q?=22Cl=C3=A9ment?= Pit-Claudel"'s message of "Sat, 28 Sep 2019 16:37:15 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 80.91.231.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240377 Archived-At: Cl=C3=A9ment Pit-Claudel writes: > On 2019-09-28 16:06, Lars Ingebrigtsen wrote: >> The only likely external conversion program is, unfortunately, "convert" >> from ImageMagick, so there are still security implications, and a shim >> like that isn't something we could have switched on by default. > > An alternative route that might be worth exploring is > http://www.graphicsmagick.org/, which is GPL-compatible and seems to > have a better security record than ImageMagick. Ah, I didn't know that it had a command line interface, too. "gm convert" seems like is should be almost drop-in compatible with "convert". This shim library could support a number of command line functions, I guess, depending on what's installed (gm/convert/ffmpeg/netpbm). --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no