Figure 1: Attribution: By ~~helix84 (2007), Philverney (9 November 2005), David Vignoni (December 6, 2005) LGPL: http://www.gnu.org/licenses/lgpl.html or Public domain, via Wikimedia Commons (search for “Icon – upload photo 2.svg”)
Today I’m experimenting with image uploads on org-mode and org2blog. I don’t expect to write a lot but hopefully I’ll learn a bit. 😀
I refer heavily to one of my “go-to” pages on org-mode: Fabrice Niessen’s Github Reference Card for Org-mode. Most of what I’ll talk about in this post will be derived from this reference card.
Standard Image Upload with Caption
This is the first way I learned how to upload a picture. Essentially, you surround the path to your file with square brackets like so:
#+CAPTION: Attribution: By ~~helix84 (2007), Philverney (9 November 2005), David Vignoni (December 6, 2005) LGPL:or Public domain, via Wikimedia Commons (search for "Icon - upload photo 2.svg") #+ATTR_HTML: :alt Upload icon of a sunset photograph :title Upload icon of a sunset photograph :align center [[./img/512px-Icon_-_upload_photo_2. ]]
This is basically how I created the the header image on this post. You’ll also note that you can add a caption that appears under the picture as well as include attributes that will affect the alignment and other aspects of the image.
An Image with an Embedded URL
A Video Link
Another new thing I learned today is that you can even link to a video and use an image as the link to it:
The org code for the above image and link are as follows:
I hope this has been helpful. Please check out Fabrice Niessen’s Github Reference Card for Org-mode. It’s really useful and terse so you’re not hunting through paragraphs of information to find what you need.
- Discussion of Org-Mode Image Upload on Fabrice Niessen’s Github Reference Card for Org-mode: https://github.com/fniessen/refcard-org-mode#images
- Discussion on Image Links: https://github.com/fniessen/refcard-org-mode#image-links
- Emacs Org-mode – a system for note-taking and project planning by GoogleTechTalks (YouTube): https://youtu.be/oJTwQvgfgMM