From: Dirk-Jan C. Binnema <djcb.bulk@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: imagemagick support
Date: Tue, 15 May 2012 17:55:32 +0300 [thread overview]
Message-ID: <878vgtlcij.fsf@djcbsoftware.nl> (raw)
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
next reply other threads:[~2012-05-15 14:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-15 14:55 Dirk-Jan C. Binnema [this message]
2012-05-15 17:13 ` imagemagick support Peter Dyballa
2012-10-23 9:17 ` Peter Dyballa
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878vgtlcij.fsf@djcbsoftware.nl \
--to=djcb.bulk@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).