From: John Hendy <jw.hendy@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Trouble with in-line images and iimage.el
Date: Tue, 4 Sep 2012 14:05:32 -0500 [thread overview]
Message-ID: <CA+M2ft9kk6GvT1r940PchKcqW0wjcr4KWWbU_qiiMhephkW=0Q@mail.gmail.com> (raw)
Hi,
I'm trying to display inline images. I downloaded iimage.el and added
it's path to my load-path. I also added the code found on Worg for
inline images with iimage.[1] Lastly, I've added =#+startup:
inlineimages= just to be sure nothing is holding things back. I've
tried both =[[file:c:/path/to/file.png]]= and
=[[c:/path/to/file.png]]=
I toggle =org-toggle-iimage-in-org= and click the image and get a
buffer filled with symbols and the error in *Messages*:
-----
Cannot display image: (Invalid image specification)
-----
I had a modified .emacs from my Linux setup for Windows and didn't
remove all of my openwith configuration stuff. Originally Windows was
looking for geeqie when I clicked the image. I removed that bit and no
longer get the error that geeqie doesn't exist. Could openwith be
doing anything else with this? I think I just git pulled/re-made last
week.
I used a couple different pictures I had as well as one downloaded off
of google images in .png form, just to try. This is on Windows 7. Is
there anything else I need to do? How might I troubleshoot this?
For something reproducible, here's a minimal .emacs I loaded using
=emacs.exe -Q -l /path/to/.emacs=
----------
(add-to-list 'load-path "C:/Users/a1rhwzz/installed/emacs-23.3/site-lisp")
(add-to-list 'load-path "~/.emacs.d/org.git/contrib/lisp")
(add-to-list 'load-path "~/.emacs.d/org.git/lisp")
(add-to-list 'load-path "~/.emacs.d/site-lisp")
(require 'org-install)
(require 'iimage)
(add-to-list 'iimage-mode-image-regex-alist
(cons (concat "\\[\\[file:\\(~?" iimage-mode-image-filename-regex
"\\)\\]") 1))
(defun org-toggle-iimage-in-org ()
"display images in your org file"
(interactive)
(if (face-underline-p 'org-link)
(set-face-underline-p 'org-link nil)
(set-face-underline-p 'org-link t))
(iimage-mode))
----------
And here's a minimal file:
----------
#+startup: inlineimages
* headline
[[C:\Users\username\Desktop\file.png]]
[[file:C:\Users\username\Desktop\file.png]]
----------
And the *Messages* output:
----------
For information about GNU Emacs and the GNU system, type C-h C-a.
(New file)
OVERVIEW
(New file)
Type C-c C-c to view the image as an image.
Cannot display image: (Cannot determine image type)
----------
Thanks,
John
[1] http://orgmode.org/worg/org-configs/org-config-examples.html#sec-2-2
next reply other threads:[~2012-09-04 19:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-04 19:05 John Hendy [this message]
2012-09-04 19:29 ` Trouble with in-line images and iimage.el Charles Philip Chan
2012-09-04 19:32 ` John Hendy
2012-09-04 19:46 ` Charles Philip Chan
2012-09-04 21:13 ` Nick Dokos
2012-10-13 19:31 ` Joao Brito
2012-10-14 20:52 ` John Hendy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+M2ft9kk6GvT1r940PchKcqW0wjcr4KWWbU_qiiMhephkW=0Q@mail.gmail.com' \
--to=jw.hendy@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).