From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Linking to ImageMagick by default Date: Wed, 05 Dec 2018 19:38:11 +0100 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1544035313 8016 195.159.176.226 (5 Dec 2018 18:41:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2018 18:41:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: rgm@gnu.org, emacs-devel@gnu.org To: Daniel Pittman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 05 19:41:49 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUc7E-0001t5-W7 for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2018 19:41:45 +0100 Original-Received: from localhost ([::1]:36231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUc9L-0007x7-Fs for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2018 13:43:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUc44-0002Jd-Qf for emacs-devel@gnu.org; Wed, 05 Dec 2018 13:38:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUc41-0005ol-KX for emacs-devel@gnu.org; Wed, 05 Dec 2018 13:38:28 -0500 Original-Received: from lamora.getmail.no ([84.210.184.7]:37575) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUc41-0005ma-BG; Wed, 05 Dec 2018 13:38:25 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by lamora.getmail.no (Postfix) with ESMTP id E81F060A7C; Wed, 5 Dec 2018 19:38:22 +0100 (CET) Original-Received: from lamora.getmail.no ([127.0.0.1]) by localhost (lamora.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id QPgK_EkGfLFF; Wed, 5 Dec 2018 19:38:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by lamora.getmail.no (Postfix) with ESMTP id F13EB60A86; Wed, 5 Dec 2018 19:38:11 +0100 (CET) X-Virus-Scanned: amavisd-new at lamora.get.c.bitbit.net Original-Received: from lamora.getmail.no ([127.0.0.1]) by localhost (lamora.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tLw3rBXJPJln; Wed, 5 Dec 2018 19:38:11 +0100 (CET) Original-Received: from stories (cm-84.212.221.165.getinternet.no [84.212.221.165]) by lamora.getmail.no (Postfix) with ESMTPSA id 9F3C160A7C; Wed, 5 Dec 2018 19:38:11 +0100 (CET) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUJBwgGAwUFAwRXP08H BAYEAgOZ8iukAAACYklEQVQ4jWVUW5LjIAyUAwewWPI/qMw/U8wBwNEBYmq4/1W2MXaqtpYkjq3W Wy0TFfXO895bi711icJeiyWigqviVIbEa3WqQwwAP8j9kPLQKDSPzut5iioXk/NloWThdTiA8oNy nshpaW97nA9g9fb3D2DX69n+B3y8KHNJRAiexpMHUMvigld18Q2RSafaitoKVdadK26/PvZ+eLfO 65Nxdj9yH0D9LbiBLq+Vq2NY65njaWvRKOUqoda4JjrbUjcAi0AulQV4MTNGDUAXj4TYeR858BWc B+DcMyCyk2OXUNIENh1mQYITAeqOkm+g0B63wBIbEK80gXCUQg7qTmLswqHR5eqoKy0hSgMQYLOa C2hc6TQRdrFzoDwB3UY5MtQlyHPzVwjSzs9GKr2DPU56u6fgQ3XyfsxU20jsLhAF9DfUe2wNBiKn 2FAA934XUBAA/D0PP0aI4XKPyD9+Lc9FFn6siy83gIpj+4MkE77m4aRMoPXe3+nDCAZXB1OoIckj 59e3z/X1rXsXIAXFhLbxZtIr/yTQJhtr7Byt9BD49DpPyhj/QI7eYrAwgPAF1/mHp4VDSQzhAAYH MzydwNHQ8GIL0rUvYyj7a3WOFtEVD11muDKp3hay6Q6gltOVgbM0gWPjUjnrK81WXIuGJgr47ofi BVyjDUGdL/oCMlwNi9mf0H2xzokfdWHt1F4bHfqBEFy/jEmWUtG6zqx2zKOBsSvyeZiMfdGzv4S5 sTS8LqwfbxBsCLiJJSGQD5Af1A0hOMbHjTyp9waWgxDYDUYKHn8zyAKCyFFPPo+Exjjg8y+NHJcx 9JGWSgAAAABJRU5ErkJggg== In-Reply-To: (Daniel Pittman's message of "Wed, 5 Dec 2018 13:27:01 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 84.210.184.7 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:231639 Archived-At: Daniel Pittman writes: > The last gives a good explanation of the trade-offs, as does the > first. Personally, I would much rather buy than build that sort of > image filtering logic. :) Fortunately, we don't have to invent anything here. :-) As you point out, there's lots of excellent research into image scaling algorithms, and the algorithms themselves aren't mind-bogglingly difficult to implement. I think. At least that was my conclusion the last time I looked at this. And if we're really lucky, we can adapt code from other GNU projects, but I haven't investigated. But what I meant by "probably not very hard" wasn't that bit, but fitting image scaling into the Emacs image machinery, which is surprisingly convoluted. But I went through all the code paths (the layering here is "there are layers?") and it looked like it wouldn't require that much to inject scaling into all the image formats we care about. (I think XPM was the biggest problem.) Unless something's changed since... 2014? I think that was when I looked at it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no