Re: [Orgmode] Re: (org-display-inline-images)

2011-02-07 Thread Bastien
Hi Tassilo,

Tassilo Horn tass...@member.fsf.org writes:

 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.
 `

Thanks for the information.  In the meantime, I tested Vladimir's 
patch, which also relies on ImageMagick support.   I couldn't test
this patch very far as 

  M-: (imagemagick-register-types) RET 

crashed my emacs (24.0.50.2).  Will update my emacs and try this again.
Would be a nice thing to have rescaling/slicing of images in org.

-- 
 Bastien

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: (org-display-inline-images)

2011-02-07 Thread Tassilo Horn
Bastien bastien.gue...@wikimedia.fr 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


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode