From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Native image rotation Date: Sun, 24 Feb 2019 12:34:32 -0500 Message-ID: References: <20190224113050.GA67303@breton.holly.idiocy.org> <83tvgtnoyh.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="5311"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 24 18:35:32 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxxga-0001HL-C2 for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2019 18:35:32 +0100 Original-Received: from localhost ([127.0.0.1]:53804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxxgY-0004Hi-O4 for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2019 12:35:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxxfi-0004GJ-Io for emacs-devel@gnu.org; Sun, 24 Feb 2019 12:34:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxxfg-0006A1-MC for emacs-devel@gnu.org; Sun, 24 Feb 2019 12:34:38 -0500 Original-Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:45531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxxfg-00068J-Hv for emacs-devel@gnu.org; Sun, 24 Feb 2019 12:34:36 -0500 Original-Received: by mail-qk1-x733.google.com with SMTP id v139so3980775qkb.12 for ; Sun, 24 Feb 2019 09:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=cJihCrMBL/0zQU8nAphs9+lQTOGdGgoQ2AIfmLL1h0I=; b=KGufXrRxW9H6b1a27/4MD8hfeHIFOOoFQbcCGQRsauqBXdsIiruZfdovc6aSJzw6gm dEuxo8nXey8a0jwpB1t58L+5ECWdla2XiN+5A7xr/Vsb5nU5JMplLVtBtg5RapDc2ULc Y3IJV1YeY1r5O5VjepLAkjD0mbxUF9443eprVf9xD6XzwGTfvJt+h92dhJ8VXnW3Ldix vVT5SYQz4DtoP2loPjkLhNu16p86rO1YWrCtKSedOTAhX26QP4B5MUSc7PbMzFjILgt9 DrMVhe2uIULgQQWi4//DbDFr6wM00BRYc1v+t3xEOBoRgBjnRdndDuIW7YLQu6st0oDF xHWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cJihCrMBL/0zQU8nAphs9+lQTOGdGgoQ2AIfmLL1h0I=; b=K1BUDVWYFs6c4P0GaCmWXYh9mUDhodeBCKgrGxcoalC4NgG2+dmZrWjIMDZYIDi8Q/ Hl/4Mb/2Y09EWt0blMcLluX+l5a1MSxPKSuxKPCjtFv4ij8hKVujKoWvCQsSL0eDvL/O htxXKpWvCsu/w5Gu0EKSlBqSM6BF2AZWYdcEvhtZiejueCTeq6r786NK6OXgs6QuyYlg 06wNPHm9vk0ih56WYAXvlVx3r3R/Xc5RJOugizun0WT2L4fi5sdCcO/sEaBDKCMacjWv YdMC5PJSPO0XqZYooGpMaHaH7gIgZSmciq4X2yb7Sw+QialyeMVVcX3TuL8aCTyZkfyr 6fIQ== X-Gm-Message-State: AHQUAubtKv+BvB/NmvY9bqGVsXQIStnkf1UY3Re1qtitWskJ1xGQmdh4 FXLrZi1M6dIkvdfkYgC8S+HukaTP X-Google-Smtp-Source: AHgI3IbqwQtn2IKb+AOcGwg4yNIusBKCP1/IrAh1oqIkYgHz8JMk8UQ9qDum4SLvWBKxZiTKxDK0tQ== X-Received: by 2002:a37:a407:: with SMTP id n7mr10520545qke.46.1551029674544; Sun, 24 Feb 2019 09:34:34 -0800 (PST) Original-Received: from ?IPv6:2601:184:4180:66e7:3128:ad0f:5f85:ca60? ([2601:184:4180:66e7:3128:ad0f:5f85:ca60]) by smtp.googlemail.com with ESMTPSA id 24sm5826239qtu.17.2019.02.24.09.34.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Feb 2019 09:34:33 -0800 (PST) In-Reply-To: <83tvgtnoyh.fsf@gnu.org> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::733 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:233569 Archived-At: On 24/02/2019 11.14, Eli Zaretskii wrote: >> Date: Sun, 24 Feb 2019 11:30:50 +0000 >> From: Alan Third >> >> I’ve attached a couple of patches. The second renames image scaling to >> image transforms, as it covers more than just scaling. >> >> It should be trivial to add cropping now. I can’t think of anything >> else we might want to support. >> >> Again I’ve not handled Windows, but hopefully it’s quite >> straight‐forward. >> >> The image rotation code is very explicit in what it’s doing and could >> be optimized, but I’m not sure it matters. > > Thanks. > > Though I wonder what would be the use cases for rotating images in > Emacs by angles other than integral multiples of 90 deg. I've used rotated images to display a spinning 'busy' indicator in the modeline in the past. The corresponding package currently ships with a set of pre-rotated images, but generating them in Emacs would be more convenient.