[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
imagemagick support
From: |
Dirk-Jan C . Binnema |
Subject: |
imagemagick support |
Date: |
Tue, 15 May 2012 17:55:32 +0300 |
User-agent: |
mu4e 0.9.8.5-dev2; emacs 24.1.50.9 |
Hi all,
I'm experimenting a bit with the new imagemagick support in emacs 24. I
wonder if I am misunderstanding something.
After compiling the latest emacs-24 with imagemagick support, I do:
(imagemagick-register-types)
After, (imagemagick-types) gives me a long list of types, including PNG,
JPEG etc. However, when I then try:
(create-image "mypng.png")
=> (image :type png :file "mypng.png")
Still, if I explicitly do
(create-image "mypng.png" 'imagemagick)
=> (image :type imagemagick :file "mypng.png")
So, why isn't imagemagick used automatically?
Second question, when I load an image, I want it to be at most, say, 800
pixels. Using imagemagick, I can do:
(create-image "mypng.png" 'imagemagick nil :width 800)
but that will also scale-up smaller images, which is not what I want.
Is there a way to only scale-*down* images, but leave smaller ones as
they are? I can call one of the imagemagick command line tools, but that
seems somewhat suboptimal.
Thanks,
Dirk.
--
Dirk-Jan C. Binnema Helsinki, Finland
e:djcb@djcbsoftware.nl w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C
- imagemagick support,
Dirk-Jan C . Binnema <=