Re: [O] Scaling of image previews in org-mode

2016-08-10 Thread John Kitchin
Certainly it could be adapted to other modes, at least for showing the images. If there was a way to parse resizing info, or set it via variables, you could also get resized images. The key is hooking into font-lock and detecting where images are. The basic framework is laid out here: http://kit

Re: [O] Scaling of image previews in org-mode

2016-08-10 Thread Uwe Brauer
>>> "John" == John Kitchin 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 prob

Re: [O] Scaling of image previews in org-mode

2016-08-09 Thread Johannes Brauer
thank you for the hint, I will give it a try Johannes > Am 08.08.2016 um 01:16 schrieb John Kitchin : > > 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. > > Johannes Brauer

Re: [O] Scaling of image previews in org-mode

2016-08-07 Thread John Kitchin
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. Johannes Brauer writes: > Hi! > > If I insert a jpg in my org-mode document, I can preview it but not scale its > width, like so: > >

Re: [O] Scaling of image previews in org-mode

2016-08-04 Thread Giri Prashanth
The following attribute worked for me to scale image: #+attr_html: :width 100px But I had to build emacs25 in OS X with ImageMagick support. On Thu, Aug 4, 2016 at 1:26 AM, Johannes Brauer wrote: > I think my Aquamacs 3.2 GNU Emacs 24.4.51.2 has got ImageMagick support. > > Am 04.08.2016 um 00

Re: [O] Scaling of image previews in org-mode

2016-08-04 Thread Johannes Brauer
I think my Aquamacs 3.2 GNU Emacs 24.4.51.2 has got ImageMagick support. Am 04.08.2016 um 00:09 schrieb Giri Prashanth mailto:giri.prasha...@gmail.com>>: I think you need to build emacs with ImageMagick support for image scaling to work. On Wed, Aug 3, 2016 at 12:20 PM, Johannes Brauer mailt

Re: [O] Scaling of image previews in org-mode

2016-08-03 Thread Giri Prashanth
I think you need to build emacs with ImageMagick support for image scaling to work. On Wed, Aug 3, 2016 at 12:20 PM, Johannes Brauer wrote: > Hi! > > If I insert a jpg in my org-mode document, I can preview it but not scale > its width, like so: > > Add the following code to my init.el file: >

[O] Scaling of image previews in org-mode

2016-08-03 Thread Johannes Brauer
Hi! If I insert a jpg in my org-mode document, I can preview it but not scale its width, like so: Add the following code to my init.el file: (setq org-image-actual-width nil) Then insert this code in my document, where I want the image to appear: #+ATTR_ORG: :width 20 [[./test.jpg]] No matter