by ghostwreck · 9y ago · 0 comments
{{file:../../images/image.png}}
{{http://example.com/image.png}}
Vim is of course not able to display images, but they appear when you convert the wiki page to HTML. ;; There probably are better solutions already
;; available somewhere.
(defun org-insert-screenshot (filename)
(interactive "sFilename: ")
(let ((filename (concat filename ".png")))
;; import is from ImageMagick, change to whatever you like to use
(call-process "import" nil nil nil filename)
(insert (format "[[file:%s]]" filename))
(org-display-inline-images)))