* FR: Display images in org-mode?
@ 2008-01-07 17:45 MarkS
2008-01-08 13:17 ` Bastien
0 siblings, 1 reply; 7+ messages in thread
From: MarkS @ 2008-01-07 17:45 UTC (permalink / raw)
To: emacs-orgmode
I've been comparing org-mode with emacs-muse. In general, orgmode is much more
polished.
One feature of emacs-muse that I really like and can use is the ability to
display inline images right inside of emacs. This allows me to see thumbnails of
documents I'm currently working on, or catalog photographs on CD.
Is there any hope that orgmode will ever have this capability? I was thinking
that the image rendering must somehow be inherent in emacs for muse to be able
to do this, so maybe it wouldn't be too hard for orgmode to do it too?
Thanks!
Mark
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: FR: Display images in org-mode?
2008-01-07 17:45 FR: Display images in org-mode? MarkS
@ 2008-01-08 13:17 ` Bastien
2008-01-08 14:48 ` MarkS
0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2008-01-08 13:17 UTC (permalink / raw)
To: MarkS; +Cc: emacs-orgmode
Hi Marks,
MarkS <throaway@yahoo.com> writes:
> One feature of emacs-muse that I really like and can use is the
> ability to display inline images right inside of emacs. This allows me
> to see thumbnails of documents I'm currently working on, or catalog
> photographs on CD.
I've had a quick look at the code in Muse for this. Inline images are a
good feature if we have something like `org-toggle-inline-images'.
> Is there any hope that orgmode will ever have this capability? I was
> thinking that the image rendering must somehow be inherent in emacs
> for muse to be able to do this, so maybe it wouldn't be too hard for
> orgmode to do it too?
Definitely not that hard.
For now there is this rule applying to the HTML export: if an image link
has no description, or if the description and the link are equal, inline
the image in the HTML output:
[[file:/home/me/me.jpg]] => <img src="[img URL]">
If there is some informative description
then don't inline the image, juste link to it.
[[file:/home/me/me.jpg][Me!]] => <a href="[img URL]">Me!</a>
Would this rule be okay for inlining images in the buffer as well?
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: FR: Display images in org-mode?
2008-01-08 13:17 ` Bastien
@ 2008-01-08 14:48 ` MarkS
2008-01-08 14:56 ` William Henney
0 siblings, 1 reply; 7+ messages in thread
From: MarkS @ 2008-01-08 14:48 UTC (permalink / raw)
To: emacs-orgmode
Bastien <bzg <at> altern.org> writes:
> For now there is this rule applying to the HTML export: if an image link
> has no description, or if the description and the link are equal, inline
> the image in the HTML output:
>
> [[file:/home/me/me.jpg]] => <img src="[img URL]">
>
> If there is some informative description
> then don't inline the image, juste link to it.
>
> [[file:/home/me/me.jpg][Me!]] => <a href="[img URL]">Me!</a>
>
> Would this rule be okay for inlining images in the buffer as well?
>
Is that the rule, or is this the rule (from the documentation):
If the description is a file name or URL that points to an
image, HTML export (*note HTML export::) will inline the image
as a clickable button. If there is no description at all and
the link points to an image, that image will be inlined into
the exported HTML file.
This latter rule would work. One would want the exported HTML to be a clickable
button so that you could, for example, have a thumbnail on the page that points
to a higher resolution version in a different directory.
The thing that's missing from either approach is that you can't specify
attributes -- especially the alt tag for creating w3c compliant, disability
accessible, search-engine friendly image descriptions.
Thanks!
-- Mark
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: FR: Display images in org-mode?
2008-01-08 14:48 ` MarkS
@ 2008-01-08 14:56 ` William Henney
2008-01-09 17:49 ` MarkS
0 siblings, 1 reply; 7+ messages in thread
From: William Henney @ 2008-01-08 14:56 UTC (permalink / raw)
To: MarkS; +Cc: emacs-orgmode
On Jan 8, 2008 8:48 AM, MarkS <throaway@yahoo.com> wrote:
> Bastien <bzg <at> altern.org> writes:
>
> > For now there is this rule applying to the HTML export: if an image link
> > has no description, or if the description and the link are equal, inline
> > the image in the HTML output:
> >
> > [[file:/home/me/me.jpg]] => <img src="[img URL]">
> >
> > If there is some informative description
> > then don't inline the image, juste link to it.
> >
> > [[file:/home/me/me.jpg][Me!]] => <a href="[img URL]">Me!</a>
> >
> > Would this rule be okay for inlining images in the buffer as well?
> >
>
> Is that the rule, or is this the rule (from the documentation):
>
> If the description is a file name or URL that points to an
> image, HTML export (*note HTML export::) will inline the image
> as a clickable button. If there is no description at all and
> the link points to an image, that image will be inlined into
> the exported HTML file.
>
>
> This latter rule would work. One would want the exported HTML to be a clickable
> button so that you could, for example, have a thumbnail on the page that points
> to a higher resolution version in a different directory.
>
> The thing that's missing from either approach is that you can't specify
> attributes -- especially the alt tag for creating w3c compliant, disability
> accessible, search-engine friendly image descriptions.
>
Perhaps a separate link type would be best for that
[[image:/path/to/file.jpg][My description]]
=> <img src="[img URL]" alt="My description">
There could also be "movie:" and "audio:", or even just a general link
type "media"", which automagically Does The Right Thing.
Cheers
Will
--
Dr William Henney, Centro de Radioastronomía y Astrofísica,
Universidad Nacional Autónoma de México, Campus Morelia
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: FR: Display images in org-mode?
2008-01-08 14:56 ` William Henney
@ 2008-01-09 17:49 ` MarkS
2008-01-09 18:12 ` Piotr Zielinski
0 siblings, 1 reply; 7+ messages in thread
From: MarkS @ 2008-01-09 17:49 UTC (permalink / raw)
To: emacs-orgmode
9101 1501 3471 1101 5039 92
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: FR: Display images in org-mode?
2008-01-09 17:49 ` MarkS
@ 2008-01-09 18:12 ` Piotr Zielinski
2008-01-09 19:30 ` William Henney
0 siblings, 1 reply; 7+ messages in thread
From: Piotr Zielinski @ 2008-01-09 18:12 UTC (permalink / raw)
To: MarkS; +Cc: emacs-orgmode
I think iimage-mode (minor mode shipped with emacs) does what you want
http://www.netlaputa.ne.jp/~kose/Emacs/iimage.html
Piotr
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: FR: Display images in org-mode?
2008-01-09 18:12 ` Piotr Zielinski
@ 2008-01-09 19:30 ` William Henney
0 siblings, 0 replies; 7+ messages in thread
From: William Henney @ 2008-01-09 19:30 UTC (permalink / raw)
To: org-mode mailing list
Hi Piotr
On Jan 9, 2008 12:12 PM, Piotr Zielinski <piotr.zielinski@gmail.com> wrote:
> I think iimage-mode (minor mode shipped with emacs) does what you want
>
> http://www.netlaputa.ne.jp/~kose/Emacs/iimage.html
>
Hey, that's great! How come I never spotted it before?
Only problem seems to be that scrolling doesn't work properly when the
image is bigger than the emacs frame, but I think that this is a
general problem with emacs' display of images
Cheers
Will
--
Dr William Henney, Centro de Radioastronomía y Astrofísica,
Universidad Nacional Autónoma de México, Campus Morelia
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-01-09 19:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-07 17:45 FR: Display images in org-mode? MarkS
2008-01-08 13:17 ` Bastien
2008-01-08 14:48 ` MarkS
2008-01-08 14:56 ` William Henney
2008-01-09 17:49 ` MarkS
2008-01-09 18:12 ` Piotr Zielinski
2008-01-09 19:30 ` William Henney
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.