From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Linking to ImageMagick by default Date: Sat, 8 Dec 2018 18:38:10 +0000 Message-ID: <20181208183810.GA2465@breton.holly.idiocy.org> References: <20181205223901.GA5543@breton.holly.idiocy.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 1544294178 20757 195.159.176.226 (8 Dec 2018 18:36:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2018 18:36:18 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Glenn Morris , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 08 19:36:13 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 1gVhSW-0005Hs-6p for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2018 19:36:12 +0100 Original-Received: from localhost ([::1]:51773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVhUc-0008Av-MQ for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2018 13:38:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVhUW-00088a-Re for emacs-devel@gnu.org; Sat, 08 Dec 2018 13:38:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVhUW-0003hd-1q for emacs-devel@gnu.org; Sat, 08 Dec 2018 13:38:16 -0500 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:38731) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVhUU-0003f9-Pq; Sat, 08 Dec 2018 13:38:14 -0500 Original-Received: by mail-wm1-x32b.google.com with SMTP id m22so7443238wml.3; Sat, 08 Dec 2018 10:38:14 -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=/e0jg5frp6BBwtFajqlLYpJ79uT1VIT4T+wC3gHXGvs=; b=fdJivqYGi/00MzmveTu+CpWzgeIU8RN39WkaZKHq3RbKqsdIB33/8CenCx+r3spzm+ /V/cZ2qxkeh554HrS+7knHomn64+jcv7jp3KbMKmUvMOyYW/oq5qSRrchrhJ27M1sbVW C1MJXSagM5pTWNzU/+ku+t45dly+62r3q422KgbmleidyL9lyV0DOHPFgh9irZ0zHHW3 rwGnZ7Kan+ZURyhGDaXIqMryd/I7xElWUezpPahHmfWV6sa6V/+6xd2qQDiudNCINa/9 vFRzuV2zYIyHA6ph3GD0e3YzGkW7umQcMwBtZX+1yJIO+gV/FLNQ1sM0Q2fenVwiW87a pUaA== 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=/e0jg5frp6BBwtFajqlLYpJ79uT1VIT4T+wC3gHXGvs=; b=k1PSVbyFELfK0PscO7xvcDjmpBdeiVMivq6dunFNwnYCMt0O2BdK0kSn5b2doXLUe+ vTmdgRdDmcEy9BVeCd5eQAGCerUhbk6zXRqPFTVsddkMP+VcT6ICRaKVQ4jcQCOVOVdX kVvqoHQ5K5LJzlk5iyV3qP72F4tFBaLKRB2kou2OvIcVvXEVN48AmFhT7/LNpC4J421V ipPihZFQXIhl2wZZOwRp6TydUDXgcs1XirQXyMwZNcFb4Ly2YqKEtfk2QtkML2cajlXB OBS32E5Bb9sJfYZbQfSC7MGRtGGk0loADqsjvYARhhD6nIU9IXP07eplmuJWmbAlxi+3 rokQ== X-Gm-Message-State: AA+aEWblPyJNEsRytSA6IoyxR+M9ZLtY7CBpm6M7ClAAQtoj6UxJiUmb fQmfef06k4npO+QL0HkR7zqYsKwJ X-Google-Smtp-Source: AFSGD/WjJ6Jyr9KyKGGfkw+V8/FM3TBHLKhtZFwNPgFvqU0hLf+pXL9Ue/Mmc7vMAjOz1AJb89OZ7g== X-Received: by 2002:a1c:81ca:: with SMTP id c193mr6136896wmd.66.1544294293222; Sat, 08 Dec 2018 10:38:13 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-0dc0-c921-ca25-74f4.holly.idiocy.org. [2001:8b0:3f8:8129:dc0:c921:ca25:74f4]) by smtp.gmail.com with ESMTPSA id i9sm7745821wrs.34.2018.12.08.10.38.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Dec 2018 10:38:12 -0800 (PST) Content-Disposition: inline In-Reply-To: <20181205223901.GA5543@breton.holly.idiocy.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32b 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:231724 Archived-At: On Wed, Dec 05, 2018 at 10:39:01PM +0000, Alan Third wrote: > > This may be naive, but is it possible to leave scaling to the GUI > toolkit? I know that when we draw images into the frame in NS we can > specify different sized rectangles for source and destination and the > toolkit handles the scaling for us. I think w32 is the same and > presumably X provides something similar. 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’t 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’re being displayed, as otherwise we’d want to rewrite the image caching code. -- Alan Third