From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Trouble with in-line images and iimage.el Date: Tue, 4 Sep 2012 14:05:32 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8yRL-0004uE-5N for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 15:05:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8yRI-0006lN-WB for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 15:05:35 -0400 Received: from mail-qa0-f48.google.com ([209.85.216.48]:63063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8yRI-0006lF-RH for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 15:05:32 -0400 Received: by qady1 with SMTP id y1so4089479qad.0 for ; Tue, 04 Sep 2012 12:05:32 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode 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