emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Russell Adams <RLAdams@AdamsInfoServ.Com>
To: emacs-orgmode@gnu.org
Subject: Re: scale inline images in orgmode
Date: Tue, 28 Aug 2012 15:34:59 -0500	[thread overview]
Message-ID: <20120828203459.GA5260@cardamom.adamsinfoserv.com> (raw)
In-Reply-To: <14024726.E93JukLEF0@linux-nyil.site>

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

  reply	other threads:[~2012-08-28 20:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-28 20:13 scale inline images in orgmode AW
2012-08-28 20:34 ` Russell Adams [this message]
2012-08-28 21:31   ` Detlef Steuer
2012-08-29 11:57     ` Jeffrey Spencer
2012-08-30 13:52 ` Bastien
2012-08-30 17:38   ` AW
2013-05-25 14:10   ` Klaus-Dieter Bauer
  -- strict thread matches above, loose matches on Subject: below --
2015-02-24 14:23 Shavkat Rustamov

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120828203459.GA5260@cardamom.adamsinfoserv.com \
    --to=rladams@adamsinfoserv.com \
    --cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).