From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Image transformations Date: Sat, 29 Jun 2019 20:49:59 +0100 Message-ID: <20190629194959.GA71373@breton.holly.idiocy.org> References: <838su3w0de.fsf@gnu.org> <20190616152259.GA22789@breton.holly.idiocy.org> <83d0jdv68i.fsf@gnu.org> <20190617211332.GA55597@breton.holly.idiocy.org> <83a7e6na26.fsf@gnu.org> <20190625183352.GA18019@breton.holly.idiocy.org> <838stplcgb.fsf@gnu.org> <83v9wri0yd.fsf@gnu.org> <20190628183604.GA51376@breton.holly.idiocy.org> <83imsph4kj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="255609"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.0 (2019-05-25) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 29 21:50:38 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 1hhJMr-0014QI-QO for ged-emacs-devel@m.gmane.org; Sat, 29 Jun 2019 21:50:38 +0200 Original-Received: from localhost ([::1]:41986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhJMq-0001cb-Nz for ged-emacs-devel@m.gmane.org; Sat, 29 Jun 2019 15:50:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57959) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhJMT-0001aT-Pu for emacs-devel@gnu.org; Sat, 29 Jun 2019 15:50:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhJMS-0003B1-M7 for emacs-devel@gnu.org; Sat, 29 Jun 2019 15:50:13 -0400 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:42174) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hhJMM-00032X-Mf; Sat, 29 Jun 2019 15:50:07 -0400 Original-Received: by mail-wr1-x42b.google.com with SMTP id x17so9612434wrl.9; Sat, 29 Jun 2019 12:50:05 -0700 (PDT) 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=Nt+FcBMiqYxNzVbBYJaNiWHEDVDaXFZ+RjpmrO5NTaU=; b=kccMbAwjJQUQh9OkAo878Z+LG/rnM9HuX7gTjzbPSj8zF8Td19VSP2EoIlfUUMPVrL T5LL4fEm3VxVSIeyG8pvbPr4Daer4qzxjrpJWa5v7jqMRD5I7XoHGRKCDVZP6hbJYZ4M HVU+AQfVtABACoWOMZ7jDR+jIaJfaa1OuIGC5zb7d+qNRv0DKULB/1exTn1k+cEip/gV tNqzU2pgjy8d65GhTJw6gjvZUFy6HJoGfePQJ9xW05w2uzhlFeX3Mq0BObEUq3nS2rfc 4MxvmVnxASB/BVkKYuN7yeQEYN8HIm5Z/S6KJ42Oe+NzyzREToK4zG83vr7d5EoSzM7b Wfdg== 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=Nt+FcBMiqYxNzVbBYJaNiWHEDVDaXFZ+RjpmrO5NTaU=; b=U6uWO5D0htqgCUS3EsnaTKLukgV5I5dqi/y8wkgOctloTslDcCjq0EXNQvIL8cfxkx qmHqWtUruRmPCLMd1zJ+RsfcxrURd1S98nfO9Z3tLoysiPbvCipPUEHpcXhmSrOp2KGt QNe0GCjcwSr08idabPna4mkL3I803Gcz7fkfAtXT0JyjXMZ4VM5dPvG2BcklV9wpPDd9 tijdK9TK82KSTym0nrtI1J3XFU4pe45afb0O9m2HpogiFZK1oakRQBZTbyt49wQAPqNv BkEssEQIRMybkKk5Axurz+x37wW5kb1/sQn9Y61eO/kwT6iIrfqOzP/Pgm77XW+EHoLg +feA== X-Gm-Message-State: APjAAAV67DjJavT8FaRLB3tfFSrOuFxUyJ3uhoZX67kMScLfjOD0iPfa hFAF9gPTMgluMhUNJYfDiGJMxrx8 X-Google-Smtp-Source: APXvYqwFaKkSsGNnnTvgc3nvWeOn2Bbw04piBsB1iLVnVktNNNZ6YnDOStLkkj6urSdp7hkrqFFIZw== X-Received: by 2002:adf:f591:: with SMTP id f17mr13103831wro.119.1561837803414; Sat, 29 Jun 2019 12:50:03 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-4c3a-3ac6-07f3-e813.holly.idiocy.org. [2001:8b0:3f8:8129:4c3a:3ac6:7f3:e813]) by smtp.gmail.com with ESMTPSA id n10sm5423832wrw.83.2019.06.29.12.50.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jun 2019 12:50:02 -0700 (PDT) Content-Disposition: inline In-Reply-To: <83imsph4kj.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b 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:238240 Archived-At: On Fri, Jun 28, 2019 at 10:50:52PM +0300, Eli Zaretskii wrote: > > Date: Fri, 28 Jun 2019 19:36:04 +0100 > > From: Alan Third > > Cc: emacs-devel@gnu.org > > > > My only concern is that there is no simple way to tell whether you > > should be using ‘:type imagemagick’ or not. There’s no automatic > > fallback between types. I know we want fallback in principal, but > > I’d imagined it done at the lisp level, and this function doesn’t > > help too much. > > This function is about the capabilities of a frame. AFAIK, in an > Emacs built with ImageMagick support we will use ImageMagick for > everything, unless the user somehow forces us not to, isn't that so? > If so, the function is correct disregarding the image library in use, > since if the caller wants a specific image library, that caller will > have to figure out on their own what transformations are available. If I were to do: (insert-image (create-image "image.png")) Emacs will use libpng, whether or not ImageMagick is available. I would have to force ImageMagick use. You may be thinking of image-mode, which inserts ‘:type imagemagick’ if you rotate or scale an image using the key bindings (+, -, r). If you want to change to defaulting to ImageMagick where available I’m sure we can. -- Alan Third