From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: Linking to ImageMagick by default Date: Sun, 9 Dec 2018 19:34:18 +0800 Message-ID: References: <20181205223901.GA5543@breton.holly.idiocy.org> <20181208183810.GA2465@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003e9ace057c953b4f" X-Trace: blaine.gmane.org 1544355213 26269 195.159.176.226 (9 Dec 2018 11:33:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2018 11:33:33 +0000 (UTC) Cc: Glenn Morris , Lars Magne Ingebrigtsen , emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 09 12:33:29 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 1gVxKz-0006jr-4O for ged-emacs-devel@m.gmane.org; Sun, 09 Dec 2018 12:33:29 +0100 Original-Received: from localhost ([::1]:54945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVxN5-00062H-Mb for ged-emacs-devel@m.gmane.org; Sun, 09 Dec 2018 06:35:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVxMI-0005rS-W4 for emacs-devel@gnu.org; Sun, 09 Dec 2018 06:34:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVxMI-00053Q-7M for emacs-devel@gnu.org; Sun, 09 Dec 2018 06:34:50 -0500 Original-Received: from mail-it1-x12b.google.com ([2607:f8b0:4864:20::12b]:40582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVxMH-0004NH-39; Sun, 09 Dec 2018 06:34:49 -0500 Original-Received: by mail-it1-x12b.google.com with SMTP id h193so13691087ita.5; Sun, 09 Dec 2018 03:34:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YYWsLNzgDx5qACfUGUB6u+mHplB/6AwxLzvTzDrERts=; b=bv+k+bKolXJ3UQbNjTeeh8NUz4kvFpPdetqRydO7ykVr8XMuaJ2OecHL3Fh2jruEQK 8WaRVjdGo07ChxA7TTX9tozMwNhM6lzgZ/O/Vx1UuRqGIBcEjf707mn/Kc0SFKA/vzRu b3RJLLJsczJyaQfMCiPsrPkp1V/x3uOw5fiI8DPdLws5HVbYKJLQbCn3MBWksJmhIpEx aMKVa0Tzumk/KI1+CsA9XZM6VRPFiQWgyLmIDoL9jjAQuoZOXRgt4CZK2c8KpLZ0MpMI gL4qJOSGTsFYL1wgV/I/0S7wtLdQQQKw4Zm+IMGC2H5ScJHezSx4E2udHrwjnqYYMSGq nuJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YYWsLNzgDx5qACfUGUB6u+mHplB/6AwxLzvTzDrERts=; b=RwPZwl7g+VkdGqOK0FxBUmFl4S1D43nbYUSMq9PjMpoShH8ud9DHdPqiRipcAbg8Rj Cng60fP2RR8KA4EnzC1CvFbqiTISSwpUmI0M8mTibbnytiCgVQEofFBMOzFT+oGDh5mA Na4V/u6lakKFOV6/jkgcm++eiVmhJAoaAHMw/TDiSB6gek/d6PwFQHKL7qSWot935DtB sJamBBlfAq2bA9YzcIUOIfaxJy8eR+f7H1s92mASujdfC15l/CKde7iTx7YdbabS5uY0 tbDwePlKFaH98ySCPnIGrLx1Uc2rFldqE7h6+uW8/oIpU58El0BqrRmAmWKHqsT5LSbC 9mbw== X-Gm-Message-State: AA+aEWafAbHXWoN0o4xGchXxiGLAkVxmxlfMjqpo6mJm+4VTbP5rxVmM 5tU6+2I9TgT58K2zmTY3NtL+A/rrWomxPHDzMcPvzA== X-Google-Smtp-Source: AFSGD/UKlfYSe4KQJn1PjhK3CDuOxBNJMxIyoZL3RLLMsBOM4OqKLBApmCftqOyjhl1S/QmuwrAJaiKC/aUDEqHs0Cs= X-Received: by 2002:a24:57c5:: with SMTP id u188mr8491009ita.54.1544355269480; Sun, 09 Dec 2018 03:34:29 -0800 (PST) In-Reply-To: <20181208183810.GA2465@breton.holly.idiocy.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::12b 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:231733 Archived-At: --0000000000003e9ace057c953b4f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 9 Dec 2018, 02:39 Alan Third > In case anyone cares, I looked into this and XRender would do the > trick. I had a look at how to go about it, but as usual with X stuff > it looks a fair bit more complicated than with NS (and Windows), and I > don=E2=80=99t have a good X environment to play about in. > > It may be smarter to resize the images (with XRender) when the pixmaps > are being generated, rather than when they=E2=80=99re being displayed, as > otherwise we=E2=80=99d want to rewrite the image caching code. > I implemented image scaling (and transformation) support in McCLIM using Xrender and it was surprisingly simple. The API is very poorly documented, but it's not very hard to use. > --0000000000003e9ace057c953b4f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 9 Dec 2018, 02:39 Alan Third <alan@idiocy.org wrote:

In case anyone cares, I looked into this and XRender would do the
trick. I had a look at how to go about it, but as usual with X stuff
it looks a fair bit more complicated than with NS (and Windows), and I
don=E2=80=99t have a good X environment to play about in.

It may be smarter to resize the images (with XRender) when the pixmaps
are being generated, rather than when they=E2=80=99re being displayed, as otherwise we=E2=80=99d want to rewrite the image caching code.

I implemented= image scaling (and transformation) support in McCLIM using Xrender and it = was surprisingly simple.=C2=A0

The API is very poorly documented, but it's not very hard to use= .=C2=A0
--0000000000003e9ace057c953b4f--