* Trouble with in-line images and iimage.el
@ 2012-09-04 19:05 John Hendy
2012-09-04 19:29 ` Charles Philip Chan
0 siblings, 1 reply; 7+ messages in thread
From: John Hendy @ 2012-09-04 19:05 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with in-line images and iimage.el
2012-09-04 19:05 Trouble with in-line images and iimage.el John Hendy
@ 2012-09-04 19:29 ` Charles Philip Chan
2012-09-04 19:32 ` John Hendy
0 siblings, 1 reply; 7+ messages in thread
From: Charles Philip Chan @ 2012-09-04 19:29 UTC (permalink / raw)
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 683 bytes --]
John Hendy <jw.hendy@gmail.com> writes:
Hi John:
> 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]
Iimage is obsolete. Org-mode have the ability to display inline images
for quite some time now.
> Lastly, I've added =#+startup: inlineimages= just to be sure nothing
> is holding things back.
This should be:
#+org-startup-with-inline-images: t
and use "C-c C-x C-v" to toggle inline images.
Cheers,
Charles
--
"The world is beating a path to our door"
-- Bruce Perens, (Open Sources, 1999 O'Reilly and Associates)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with in-line images and iimage.el
2012-09-04 19:29 ` Charles Philip Chan
@ 2012-09-04 19:32 ` John Hendy
2012-09-04 19:46 ` Charles Philip Chan
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: John Hendy @ 2012-09-04 19:32 UTC (permalink / raw)
To: Charles Philip Chan; +Cc: Org-mode
On Tue, Sep 4, 2012 at 2:29 PM, Charles Philip Chan <cpchan@bell.net> wrote:
> John Hendy <jw.hendy@gmail.com> writes:
>
> Hi John:
>
>> 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]
>
> Iimage is obsolete. Org-mode have the ability to display inline images
> for quite some time now.
Good to know and I'll remove that stuff.
>
>> Lastly, I've added =#+startup: inlineimages= just to be sure nothing
>> is holding things back.
>
> This should be:
>
> #+org-startup-with-inline-images: t
>
The manual appears to be out of date on this?
> and use "C-c C-x C-v" to toggle inline images.
>
Either way, those weren't it. Windows, as usual, requires silly
maneuvers to get things working properly. I loosened my google hunting
to emacs in general and found this beauty:
- http://stackoverflow.com/questions/2650041/emacs-under-windows-and-png-files
I had to track down a bunch of .dlls and copy them into my Emacs bin/
directory. From there it worked. For the record, I added the following
to my bin/ dir:
libpng.dll
libpng12.dll
libpng12-0.dll
libpng13.dll
libpng14-14.dll
libjpeg62.dll
zlib1.dll
Now I have jpg and png viewing abilities in Org.
Thanks,
John
> Cheers,
> Charles
>
> --
> "The world is beating a path to our door"
>
> -- Bruce Perens, (Open Sources, 1999 O'Reilly and Associates)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with in-line images and iimage.el
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
2 siblings, 0 replies; 7+ messages in thread
From: Charles Philip Chan @ 2012-09-04 19:46 UTC (permalink / raw)
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 498 bytes --]
John Hendy <jw.hendy@gmail.com> writes:
> On Tue, Sep 4, 2012 at 2:29 PM, Charles Philip Chan <cpchan@bell.net> wrote:
>> This should be:
>>
>> #+org-startup-with-inline-images: t
>>
>
> The manual appears to be out of date on this?
Sorry you are right on that one for in buffer
setting. "org-startup-with-inline-images" is the variable that controls
it.
Charles
--
"Oh, I've seen copies [of Linux Journal] around the terminal room at The
Labs."
(By Dennis Ritchie)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with in-line images and iimage.el
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
2 siblings, 0 replies; 7+ messages in thread
From: Nick Dokos @ 2012-09-04 21:13 UTC (permalink / raw)
To: John Hendy; +Cc: Charles Philip Chan, Org-mode
John Hendy <jw.hendy@gmail.com> wrote:
> On Tue, Sep 4, 2012 at 2:29 PM, Charles Philip Chan <cpchan@bell.net> wrote:
> >> Lastly, I've added =#+startup: inlineimages= just to be sure nothing
> >> is holding things back.
> >
> > This should be:
> >
> > #+org-startup-with-inline-images: t
> >
>
That doesn't look right to me: that's the internal variable, not the name
that should appear in the file. In fact, org.el says:
,----
| $ grep org-startup-with-inline-images *.el
| org.el:(defcustom org-startup-with-inline-images nil
| org.el: ("inlineimages" org-startup-with-inline-images t)
| org.el: ("noinlineimages" org-startup-with-inline-images nil)
| org.el: (when org-startup-with-inline-images
`----
so
#+STARTUP: inlineimages
seems to be the correct invocation.
Nick
PS. Not that I've tested anything, mind you...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with in-line images and iimage.el
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
2 siblings, 1 reply; 7+ messages in thread
From: Joao Brito @ 2012-10-13 19:31 UTC (permalink / raw)
To: emacs-orgmode
John Hendy <jw.hendy <at> gmail.com> writes:
> I had to track down a bunch of .dlls and copy them into my Emacs bin/
> directory. From there it worked. For the record, I added the following
Thanks, John, it worked for me too. It was easier than I thought, I've never
noticed I didn't have these libraries.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with in-line images and iimage.el
2012-10-13 19:31 ` Joao Brito
@ 2012-10-14 20:52 ` John Hendy
0 siblings, 0 replies; 7+ messages in thread
From: John Hendy @ 2012-10-14 20:52 UTC (permalink / raw)
To: Joao Brito; +Cc: emacs-orgmode
On Sat, Oct 13, 2012 at 2:31 PM, Joao Brito <joao.brito@yahoo.com.br> wrote:
> John Hendy <jw.hendy <at> gmail.com> writes:
>
>> I had to track down a bunch of .dlls and copy them into my Emacs bin/
>> directory. From there it worked. For the record, I added the following
>
> Thanks, John, it worked for me too. It was easier than I thought, I've never
> noticed I didn't have these libraries.
Yay -- glad it helped! It was frustrating hunting around and not
getting this to work. Such a neat feature.
John
>
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-10-14 20:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-04 19:05 Trouble with in-line images and iimage.el John Hendy
2012-09-04 19:29 ` 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
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).