Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resize images in org-mode

Is there a general way to define the size, in percent or pixels, for an image that is linked in org-mode?

Say I have the following link in my .org file:

[[~/images/example.jpg]] 

This JPG is way too large, so if I export it to HTML or LaTeX or open it in org-mode with C-c C-o i will only see a fraction of the image.

like image 965
user1323995 Avatar asked Jul 26 '12 13:07

user1323995


People also ask

How do I show images in Org mode?

Such images can be displayed within the buffer with the following command: C-c C-x C-v ( org-toggle-inline-images ) Toggle the inline display of linked images. When called with a prefix argument, also display images that do have a link description.


1 Answers

As of Org 8.0, "Attribute lines now take plists" :

#+attr_html: :width 100px #+attr_latex: :width 100px [[~/images/example.jpg]] 
like image 67
yPhil Avatar answered Sep 26 '22 00:09

yPhil