From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: scale inline images in orgmode Date: Tue, 28 Aug 2012 15:34:59 -0500 Message-ID: <20120828203459.GA5260@cardamom.adamsinfoserv.com> References: <14024726.E93JukLEF0@linux-nyil.site> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6SVA-0004V9-H4 for emacs-orgmode@gnu.org; Tue, 28 Aug 2012 16:35:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6SV9-0004B8-9S for emacs-orgmode@gnu.org; Tue, 28 Aug 2012 16:35:08 -0400 Received: from tropicana.asmallorange.com ([199.188.117.12]:34264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6SV9-00048b-5p for emacs-orgmode@gnu.org; Tue, 28 Aug 2012 16:35:07 -0400 Received: from 206.180.155.43.adsl.hal-pc.org ([206.180.155.43]:47054 helo=localhost) by tropicana.asmallorange.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77) (envelope-from ) id 1T6SSZ-000859-FW for emacs-orgmode@gnu.org; Tue, 28 Aug 2012 16:32:28 -0400 Content-Disposition: inline In-Reply-To: <14024726.E93JukLEF0@linux-nyil.site> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Tue, Aug 28, 2012 at 10:13:18PM +0200, AW wrote: > > I would like to scale the images on screen in the buffer, often I don't need a > large picture, but just a reminder, what's on the picture. Is there a way to > scale the image on screen, something like #+ATTR: scale=0.5 ? Alexander, I believe Org calls out to image.el via create-image. That doesn't appear to do any resizing. I read there may be compiled in Emacs support for Imagemagick, and I have existing elisp code that shells out to resize images for display separate from Org via Imagemagick's convert utility. To Org devs, would it be difficult to add a wrapper around the create-image call that only resizes if the image will exceed certain dimensions (ie: window width or 75% of height?). This is a feature I'd love to see. Thanks. ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3