From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: Scaling of image previews in org-mode
Date: Wed, 10 Aug 2016 08:11:34 +0000 [thread overview]
Message-ID: <87fuqdt555.fsf@mat.ucm.es> (raw)
In-Reply-To: m2ziooxj9l.fsf@Johns-MacBook-Air.local
>>> "John" == John Kitchin <jkitchin@andrew.cmu.edu> writes:
> I use this code here:
> https://github.com/jkitchin/scimax/blob/master/scimax-org.el#L957
> to provide inline scaling in Emacs when it is not built with imagemagick.
Hi
Could that package or parts of it also be used in other modes?
I have the problem of displaying images in latex buffers (using auctex)
The only available tool I know is iimage.el, but this package does not
allow to re-seize the displayed image. I asked about it on emacs devel
and the answer was: «please send a patch or wait», fail enough
I just attach the mail in question below in order to clarify.
,----
|
|
|
| I just learnt about iimage.el, which is now part of GNU emacs core. I
| like it quite a lot, the only thing which I find a bit inconvenient on
| my 12 inch Laptop is the size of the images displayed. I did not find
| any variable in which the size of images could be changed.
|
|
| The author's address does not work anymore, so I looked at the code it
| seems that the essential part is this:
|
| (if arg
| (add-text-properties (match-beginning 0) (match-end 0)
| `(display ,(create-image file)
| ^^^^^
| modification-hooks
| (iimage-modification-hook)))
|
|
| Now I checked that function and its documentation says
| ,----
| [+]
| |
| | create-image is an autoloaded compiled Lisp function in ‘image.el’.
| | (create-image FILE-OR-DATA &optional TYPE DATA-P &rest PROPS)
| | Create an image.
| | ....
| | Images should not be larger than specified by ‘max-image-size’.
| `----
|
|
| However
| ,----
| [+]
| | max-image-size is a variable defined in ‘C source code’.
| | Its value is 10.0
| `----
|
| So I cannot change that value easily. Anybody has an idea how to change
| the size of the displayed images?
|
| thanks
|
| Uwe Brauer
|
`----
next prev parent reply other threads:[~2016-08-10 8:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-03 19:20 Scaling of image previews in org-mode Johannes Brauer
2016-08-03 22:09 ` Giri Prashanth
2016-08-04 8:26 ` Johannes Brauer
2016-08-04 16:53 ` Giri Prashanth
2016-08-07 23:16 ` John Kitchin
2016-08-09 17:22 ` Johannes Brauer
2016-08-10 8:11 ` Uwe Brauer [this message]
2016-08-10 14:44 ` John Kitchin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fuqdt555.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.