From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: (org-display-inline-images) Date: Mon, 07 Feb 2011 09:52:07 +0100 Message-ID: <8739o08bwo.fsf@fastmail.fm> References: <4D4E89EC.1090209@gmail.com> <87fws01ya2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=54142 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmMpd-0006By-20 for emacs-orgmode@gnu.org; Mon, 07 Feb 2011 03:52:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmMpc-00025d-0O for emacs-orgmode@gnu.org; Mon, 07 Feb 2011 03:52:24 -0500 Received: from lo.gmane.org ([80.91.229.12]:49361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmMpb-000250-Qt for emacs-orgmode@gnu.org; Mon, 07 Feb 2011 03:52:23 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PmMpZ-0005T0-Fp for emacs-orgmode@gnu.org; Mon, 07 Feb 2011 09:52:21 +0100 Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Feb 2011 09:52:21 +0100 Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Feb 2011 09:52:21 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien writes: Hi Bastien, >> Another nice thing would be a way to reduce the image size, just like >> thumbnails. Do you think it can be done ? > > Not currently -- see the docstring of the create-image function in > Emacs. I have vague memory of work beeing done in this area in Emacs, > but AFAIK this is not yet implemented. If the imagemagick backend is used for displaying the image in question, then resizing is possible by providing a :width or/and :height spec. ,---- | Images loaded with ImageMagick support a few new display | specifications: | | `:width, :height' | The `:width' and `:height' keywords are used for scaling the | image. If only one of them is specified, the other one will be | calculated so as to preserve the aspect ratio. If both are | specified, aspect ratio may not be preserved. `---- But that new feature is only present in the current bzr trunk. You might want to have a look at the included `doc-view.el', which uses that facility to zoom images if imagemagick support is present: `doc-view-enlarge' and `doc-view-shrink'. The git version of Gnus (and the version included in the emacs bzr trunk) also use that feature in `shr.el' to render inline images with an appropriate size in HTML mails. Bye, Tassilo