From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Image transformations Date: Mon, 01 Jul 2019 17:55:20 +0300 Message-ID: <83tvc5erdz.fsf@gnu.org> References: <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> <20190629194959.GA71373@breton.holly.idiocy.org> <83blyff6pg.fsf@gnu.org> <20190630191003.GA8952@breton.holly.idiocy.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="252189"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 01 17:00:06 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 1hhxmo-0013UO-6o for ged-emacs-devel@m.gmane.org; Mon, 01 Jul 2019 17:00:06 +0200 Original-Received: from localhost ([::1]:59734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhxmn-0001GF-0F for ged-emacs-devel@m.gmane.org; Mon, 01 Jul 2019 11:00:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33368) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhxil-0008Bw-5H for emacs-devel@gnu.org; Mon, 01 Jul 2019 10:55:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hhxii-0004b9-Rt; Mon, 01 Jul 2019 10:55:53 -0400 Original-Received: from [176.228.60.248] (port=4262 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hhxiT-0007ys-19; Mon, 01 Jul 2019 10:55:47 -0400 In-reply-to: <20190630191003.GA8952@breton.holly.idiocy.org> (message from Alan Third on Sun, 30 Jun 2019 20:10:03 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:238265 Archived-At: > Date: Sun, 30 Jun 2019 20:10:03 +0100 > From: Alan Third > Cc: emacs-devel@gnu.org > > On Sun, Jun 30, 2019 at 06:12:11PM +0300, Eli Zaretskii wrote: > > So you are saying that a Lisp program needs to explicitly request > > ImageMagick if it wants to, say, rotate the image by 45 degrees? > > Yes. > > > If so, I guess either the ImageMagick capabilities should not be > > part of the list we return, or the function should accept an > > additional argument which is the image type. The latter sounds like > > entering the area of diminishing returns, since if the caller needs > > to specify imagemagick as the type, then the caller already knows > > what will be returned as the value, right? > > Yes. > > > So on balance, I think we should return a list of either 2 values or > > (on Windows 9X) 1 value, and that's it. WDYT? > > That sounds good to me. We can then provide a fallback to ImageMagick > within create-image, as we’ll be able to tell when native transforms > aren’t available. OK, I've now done so. Thanks for the feedback and the expolanations.