all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: joakim@verona.se
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs Development <emacs-devel@gnu.org>
Subject: Re: imagemagick patch v3
Date: Wed, 05 Aug 2009 10:10:23 +0200	[thread overview]
Message-ID: <m3r5vqbs0g.fsf@verona.se> (raw)
In-Reply-To: <jwvtz0nvwtg.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 04 Aug 2009 22:15:05 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> 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




  reply	other threads:[~2009-08-05  8:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-04 19:55 imagemagick patch v3 joakim
2009-08-05  0:43 ` joakim
2009-08-05  2:15   ` Stefan Monnier
2009-08-05  8:10     ` joakim [this message]
2009-08-05 17:23       ` Eli Zaretskii
2009-08-05 18:19         ` Tassilo Horn
2009-08-05 18:53           ` Eli Zaretskii
2009-08-05 19:49             ` Tassilo Horn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3r5vqbs0g.fsf@verona.se \
    --to=joakim@verona.se \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.