From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: imagemagick patch v3 Date: Wed, 05 Aug 2009 10:10:23 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249459910 7845 80.91.229.12 (5 Aug 2009 08:11:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2009 08:11:50 +0000 (UTC) Cc: Emacs Development To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 05 10:11:43 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MYbaz-0007GW-09 for ged-emacs-devel@m.gmane.org; Wed, 05 Aug 2009 10:11:37 +0200 Original-Received: from localhost ([127.0.0.1]:48241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYbay-0007g1-AL for ged-emacs-devel@m.gmane.org; Wed, 05 Aug 2009 04:11:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYbZw-0007Lx-BF for emacs-devel@gnu.org; Wed, 05 Aug 2009 04:10:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYbZr-0007Je-PI for emacs-devel@gnu.org; Wed, 05 Aug 2009 04:10:32 -0400 Original-Received: from [199.232.76.173] (port=55387 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYbZr-0007JZ-LY for emacs-devel@gnu.org; Wed, 05 Aug 2009 04:10:27 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:46802 helo=gate.verona.se) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYbZr-0007o4-4b for emacs-devel@gnu.org; Wed, 05 Aug 2009 04:10:27 -0400 Original-Received: from localhost.localdomain (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id n758ANhm008863; Wed, 5 Aug 2009 10:10:23 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 04 Aug 2009 22:15:05 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113713 Archived-At: Stefan Monnier writes: >>> - :width and :height, if you specify them image will be scaled to these >>> sizes > > It would be good to make it possible to specify zoom factors as well > rather than resulting size (maybe if those parameters are floats rather > than ints?). This is already supported by the :geometry option which is quite powerful. You can do things like "50%" or "200x100" or "x100" etc. I tried to use existing keywords were available, but :geometry and :crop are very imagemagick specific. Anyway, I think rotation, scaling, and croping is sufficient. There are hundreds of operations in the imagemagick api, and I dont plan on adding more for now. I have toyed with the idea of providing a keyword like :operations, that would contain a list of image operations to be performed, but that will have to wait. >> + (push >> + (cons (concat "\\." extension "$") 'image-mode) >> + auto-mode-alist) > > The "$" should be replaced with "\\'". Ok, but I dont get why? > > > Stefan -- Joakim Verona