From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: Resizing images
Date: Mon, 30 Aug 2010 21:23:49 +0200 [thread overview]
Message-ID: <201008302123.49568.tassilo@member.fsf.org> (raw)
In-Reply-To: <m3d3t0rren.fsf@quimbies.gnus.org>
On Monday 30 August 2010 18:34:08 Lars Magne Ingebrigtsen wrote:
Hi Lars,
> Does the Emacs image functions (`create-image' and friends) have any
> way to say "if this image is bigger than X by Y, then resize it before
> returning the image handle"? Or alternatively, just an `image-resize'
> command.
If emacs is compiled with --with-imagemagick it is possible. But that's
pretty new in emacs's bzr trunk (2 weeks or so). Have a look at the
README.imagemagick file and the info docs.
,----[ (info "(elisp)ImageMagick Images") ]
| The Imagemagick library can be used to load many image formats in
Emacs.
`----
> It would be really handy when displaying articles in Gnus that have
> large images to be able to have them scaled down so that you can
> actually see them in the buffer.
Yeah, doc-view also could make advantage out of that.
But the README.imagemagick leaves my with some further questions. How
do I know if imagemagick support is compiled in? Is
(if (fboundp 'imagemagick-types) ... ...)
the way to go?
And if it's there, how do I know if `create-image' will actually use
imagemagick to load an image file?
And, how do I know if a given image is loaded by the imagemagick
backend?
Bye,
Tassilo
next prev parent reply other threads:[~2010-08-30 19:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-30 16:34 Resizing images Lars Magne Ingebrigtsen
2010-08-30 19:23 ` Tassilo Horn [this message]
2010-08-30 19:38 ` Lars Magne Ingebrigtsen
2010-08-30 20:04 ` Julien Danjou
2010-08-30 20:04 ` Julien Danjou
2010-08-30 20:14 ` Lennart Borgman
2010-08-30 20:17 ` Lars Magne Ingebrigtsen
2010-08-30 23:26 ` Lars Magne Ingebrigtsen
2010-08-31 6:05 ` joakim
2010-08-31 8:02 ` Julien Danjou
2010-08-31 8:32 ` joakim
2010-08-31 14:55 ` Lars Magne Ingebrigtsen
2010-09-01 8:40 ` joakim
2010-09-01 15:07 ` Lars Magne Ingebrigtsen
2010-08-31 14:52 ` Lars Magne Ingebrigtsen
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=201008302123.49568.tassilo@member.fsf.org \
--to=tassilo@member.fsf.org \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).