Open justinjk007 opened 6 years ago
Just noticed this too: neither ATTR_HTML
nor ATTR_LATEX
seemed to work to resize images.
Lol, I was gonna learn some ruby to implement this , this summer, then completely forgot. I will look into getting this to work, this week. One thing I know is we need to use html if you want to resize images in markdown, as in it is not natively supported, I don't know if this exporter, exports org to somee special markup for github or html, if its html then this should not be that hard I suppose.
This seems related to #51, which might need to be solved first.
org-ruby
supports inline #+HTML:
so you should be able to add the image attributes manually.
See workaround gist for issue #48 for syntax example.
for example....
#+caption: Drone Organs - Francois Huber
#+ATTR_html: :width 600px
[[https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png]]
is rendered like so with org-ruby
<img src="https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png" alt="https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png" /></p>
...and like so with org export from emacs
<div id="orgd56755f" class="figure">
<p><img src="https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png" alt="Drone_Organs_-_Francois_Huber.png" width="600px" />
</p>
<p><span class="figure-number">Figure 3: </span>Drone Organs - Francois Huber</p>
</div>
More explicit example of the workaround mentioned above:
#+HTML: <img src="path/to/image.png" width="500"/>
What i wanted was making images and so on resizable or alignable but that is not available in markdown either I believe ? It will be cool if org documents can have it thou !
Which is the right one thou ATTR_HTML or ATTR_ORG ?