From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Resizing images Date: Mon, 30 Aug 2010 21:23:49 +0200 Message-ID: <201008302123.49568.tassilo@member.fsf.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1283196327 2577 80.91.229.12 (30 Aug 2010 19:25:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 19:25:27 +0000 (UTC) Cc: Lars Magne Ingebrigtsen To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 30 21:25:26 2010 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.69) (envelope-from ) id 1Oq9yf-000307-Lz for ged-emacs-devel@m.gmane.org; Mon, 30 Aug 2010 21:25:26 +0200 Original-Received: from localhost ([127.0.0.1]:34556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq9xZ-0007bI-3P for ged-emacs-devel@m.gmane.org; Mon, 30 Aug 2010 15:24:01 -0400 Original-Received: from [140.186.70.92] (port=60519 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq9xR-0007ZD-TK for emacs-devel@gnu.org; Mon, 30 Aug 2010 15:23:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oq9xQ-0003dr-T6 for emacs-devel@gnu.org; Mon, 30 Aug 2010 15:23:53 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:21981) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq9xQ-0003dg-OT for emacs-devel@gnu.org; Mon, 30 Aug 2010 15:23:52 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id B9AB97826BF7; Mon, 30 Aug 2010 21:23:51 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00404-02; Mon, 30 Aug 2010 21:23:51 +0200 (CEST) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.localnet (p54AF1CE3.dip0.t-ipconnect.de [84.175.28.227]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id ED4C27826BF2; Mon, 30 Aug 2010 21:23:50 +0200 (CEST) User-Agent: KMail/1.13.5 (Linux/2.6.35-gentoo-r5; KDE/4.5.0; x86_64; ; ) In-Reply-To: X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:129448 Archived-At: 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