emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Managing Images with Org-mode?
@ 2012-07-25 11:36 Karl Eichwalder
  2012-07-26 13:38 ` Karl Eichwalder
  0 siblings, 1 reply; 11+ messages in thread
From: Karl Eichwalder @ 2012-07-25 11:36 UTC (permalink / raw)
  To: emacs-orgmode

Did someone already try to manage images with org-mode?  Or is it better
to stick with image-dired and enhancing that one?  For example, what is
about uploading selected images to flickr?

-- 
Karl Eichwalder

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Managing Images with Org-mode?
  2012-07-25 11:36 Managing Images with Org-mode? Karl Eichwalder
@ 2012-07-26 13:38 ` Karl Eichwalder
  2012-08-01 12:26   ` Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Karl Eichwalder @ 2012-07-26 13:38 UTC (permalink / raw)
  To: emacs-orgmode

Karl Eichwalder <ke@gnu.franken.de> writes:

> Did someone already try to manage images with org-mode?  Or is it better
> to stick with image-dired and enhancing that one?  For example, what is
> about uploading selected images to flickr?

I'm making progress with this, slowly...  I now have pre-built
thumbnails and links to the original images in my org buffer, which
looks nice:

    http://www.flickr.com/photos/keichwa/7649891572

With C-c C-o, I can see the image in the original size in the buffer
below the thumbnails.  It would be nice, if you could reuse some
image-dired features such as:

    . scaling the image to make it fit in the window

    . rotating images

    . adding tags to images

I guess some image-dired features would be available quickly, if you'd
attach a 'original-file-name text property to the filename of the image.

-- 
Karl Eichwalder

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Managing Images with Org-mode?
  2012-07-26 13:38 ` Karl Eichwalder
@ 2012-08-01 12:26   ` Bastien
  2012-08-01 12:59     ` Karl Eichwalder
  0 siblings, 1 reply; 11+ messages in thread
From: Bastien @ 2012-08-01 12:26 UTC (permalink / raw)
  To: Karl Eichwalder; +Cc: emacs-orgmode

Hi Karl,

Karl Eichwalder <ke@gnu.franken.de> writes:

>> Did someone already try to manage images with org-mode?  Or is it better
>> to stick with image-dired and enhancing that one?  For example, what is
>> about uploading selected images to flickr?
>
> I'm making progress with this, slowly...  I now have pre-built
> thumbnails and links to the original images in my org buffer, which
> looks nice:
>
>     http://www.flickr.com/photos/keichwa/7649891572

Looks nice.

How did you put the thumbnails in the Org mode file?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Managing Images with Org-mode?
  2012-08-01 12:26   ` Bastien
@ 2012-08-01 12:59     ` Karl Eichwalder
  2012-08-01 13:23       ` Bastien
  2012-08-02 20:02       ` Karl Voit
  0 siblings, 2 replies; 11+ messages in thread
From: Karl Eichwalder @ 2012-08-01 12:59 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Bastien <bzg@gnu.org> writes:

>>     http://www.flickr.com/photos/keichwa/7649891572
>
> Looks nice.
>
> How did you put the thumbnails in the Org mode file?

Once I understood the differences between "inline images" (images
without a description) and "linked images", it was easy:

    [[file:path_to_inline_image__thumbnail.png]]
    [[file:path_to_linked_image.jpg][description]]

Literal text (with descriptions shortened as just file names):

* Pictures
** 2012-07-14-stubai-nuernberger
   [[file:2012-07-14-stubai-nuernberger/thumb/IMG_4412.png]]
   [[file:2012-07-14-stubai-nuernberger/IMG_4412.JPG][IMG_4412.JPG]]
   [[file:2012-07-14-stubai-nuernberger/thumb/IMG_4414.png]]
   [[file:2012-07-14-stubai-nuernberger/IMG_4414.JPG][IMG_4414.JPG]]
   [[file:2012-07-14-stubai-nuernberger/thumb/IMG_4415.png]]
   [[file:2012-07-14-stubai-nuernberger/IMG_4415.JPG][IMG_4415.JPG]]
   [[file:2012-07-14-stubai-nuernberger/thumb/IMG_4416.png]]
   [[file:2012-07-14-stubai-nuernberger/IMG_4416.JPG][IMG_4416.JPG]]
   [[file:2012-07-14-stubai-nuernberger/thumb/IMG_4417.png]]
   [[file:2012-07-14-stubai-nuernberger/IMG_4417.JPG][IMG_4417.JPG]]
   [[file:2012-07-14-stubai-nuernberger/thumb/IMG_4418.png]]
   [[file:2012-07-14-stubai-nuernberger/IMG_4418.JPG][IMG_4418.JPG]]

To assign real tags to every single picture, every image must go in a
sub-section on its own?

-- 
Karl EICHWALDER

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Managing Images with Org-mode?
  2012-08-01 12:59     ` Karl Eichwalder
@ 2012-08-01 13:23       ` Bastien
  2012-08-02 20:02       ` Karl Voit
  1 sibling, 0 replies; 11+ messages in thread
From: Bastien @ 2012-08-01 13:23 UTC (permalink / raw)
  To: Karl Eichwalder; +Cc: emacs-orgmode

Karl Eichwalder <ke@gnu.franken.de> writes:

> To assign real tags to every single picture, every image must go in a
> sub-section on its own?

Yes.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Managing Images with Org-mode?
  2012-08-01 12:59     ` Karl Eichwalder
  2012-08-01 13:23       ` Bastien
@ 2012-08-02 20:02       ` Karl Voit
  2012-08-03 14:44         ` Karl Eichwalder
  1 sibling, 1 reply; 11+ messages in thread
From: Karl Voit @ 2012-08-02 20:02 UTC (permalink / raw)
  To: emacs-orgmode

* Karl Eichwalder <ke@gnu.franken.de> wrote:
> Bastien <bzg@gnu.org> writes:
>
>>>     http://www.flickr.com/photos/keichwa/7649891572
>> Looks nice.
>>
>> How did you put the thumbnails in the Org mode file?
>
> Once I understood the differences between "inline images" (images
> without a description) and "linked images", it was easy:
>
>     [[file:path_to_inline_image__thumbnail.png]]

Inspired by your posting, I wrote this short yasnippet in case I
want to use something similar in future:

,----[ ~/.snippets/tls ]
| name : Insert a table with files of a folder including links
| # --
| #+BEGIN_SRC sh
| PATTERN='${1:*.jpg}'
| MYFOLDER='${2:$HOME/}'
| cd \${MYFOLDER}; MYPWD=\`pwd\`; for file in \`ls -1 \${PATTERN}\`; do echo '-[['\$MYPWD'/'\$file']]'; done
| #+END_SRC
`----

Obviously, this does not work this way with Windows.

There might be room for improvement - please follow up if you
optimized it :-)

One thing: the dash in front of the '[[' is mandatory. Well, it does
not need to be a dash though. Any other normal character (non-empty,
not space) works as well. I did not quite understand why and did not
pay further attention.

The script above results in an Org-mode *table*. To me this was a
minor issue.

Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
interest for you. On a per-file-basis this is: #+STARTUP inlineimages

-- 
Karl Voit

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Managing Images with Org-mode?
  2012-08-02 20:02       ` Karl Voit
@ 2012-08-03 14:44         ` Karl Eichwalder
  2012-08-03 18:49           ` Karl Voit
  0 siblings, 1 reply; 11+ messages in thread
From: Karl Eichwalder @ 2012-08-03 14:44 UTC (permalink / raw)
  To: news1142; +Cc: emacs-orgmode

Karl Voit <devnull@Karl-Voit.at> writes:

> ,----[ ~/.snippets/tls ]
> | name : Insert a table with files of a folder including links
> | # --
> | #+BEGIN_SRC sh
> | PATTERN='${1:*.jpg}'
> | MYFOLDER='${2:$HOME/}'
> | cd \${MYFOLDER}; MYPWD=\`pwd\`; for file in \`ls -1 \${PATTERN}\`; do
> | echo '-[['\$MYPWD'/'\$file']]'; done
> | #+END_SRC
> `----

Yes, I use something similar to create the thumbnails and the initial
org code (I use 3rd level headlines instead of table, because I want to
attache tags to every single image):

#+BEGIN_SRC sh
  reuse_thumb="${1:yes}"
  org=2012-07-14-stubai-hohe-huetten
  img_dirs=${2:2012-07-*}
  : >$org.tmp
  for d in $img_dirs ; do
    {
      [ -f $d ] && continue
      echo "** $d"
      pushd $d >/dev/null
      mkdir -p thumb
      for f in *.JPG *.jpg; do
        [ -f $f ] || continue
        thumb=thumb/${f:0:-3}png
        [ $reuse_thumb = yes ] && [ -f $thumb ] \
          || convert $f -thumbnail 144^ $thumb
        echo "*** [[file:$d/$thumb]]"
        echo [[file:$d/$f][$d/$f]]
      done
      popd >/dev/null
    } >>$org.tmp
  done
#+END_SRC

> Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
> interest for you. On a per-file-basis this is: #+STARTUP inlineimages

I was already aware of the toggle key sequence.  Thanks for the STARTUP
parameter!  A colon is missing, though ;)  --better use:

    #+STARTUP: inlineimages

-- 
Karl Eichwalder

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Managing Images with Org-mode?
  2012-08-03 14:44         ` Karl Eichwalder
@ 2012-08-03 18:49           ` Karl Voit
  2012-08-04  7:01             ` Jeffrey Spencer
  0 siblings, 1 reply; 11+ messages in thread
From: Karl Voit @ 2012-08-03 18:49 UTC (permalink / raw)
  To: emacs-orgmode

* Karl Eichwalder <ke@gnu.Franken.de> wrote:
> Karl Voit <devnull@Karl-Voit.at> writes:
>
> Yes, I use something similar to create the thumbnails and the initial
> org code (I use 3rd level headlines instead of table, because I want to
> attache tags to every single image):
>
> #+BEGIN_SRC sh
[...]
> #+END_SRC

Thanks for sharing!

>> Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
>> interest for you. On a per-file-basis this is: #+STARTUP inlineimages
>
> I was already aware of the toggle key sequence.  Thanks for the STARTUP
> parameter!  A colon is missing, though ;)  --better use:
>
>     #+STARTUP: inlineimages

Of course, thanks for clarifying. Damn copy&paste :-)

-- 
Karl Voit

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Managing Images with Org-mode?
  2012-08-03 18:49           ` Karl Voit
@ 2012-08-04  7:01             ` Jeffrey Spencer
  2012-08-04  7:03               ` Bastien
  2012-08-04 19:34               ` Jude DaShiell
  0 siblings, 2 replies; 11+ messages in thread
From: Jeffrey Spencer @ 2012-08-04  7:01 UTC (permalink / raw)
  To: news1142; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]

Also think adding in features to enable some features of image-dired would
be good. Some of my images are stored at 400dpi and I would like to view
inline images at times but this is way to big for an inline image because
goes out of the frame.

On Sat, Aug 4, 2012 at 4:49 AM, Karl Voit <devnull@karl-voit.at> wrote:

> * Karl Eichwalder <ke@gnu.Franken.de> wrote:
> > Karl Voit <devnull@Karl-Voit.at> writes:
> >
> > Yes, I use something similar to create the thumbnails and the initial
> > org code (I use 3rd level headlines instead of table, because I want to
> > attache tags to every single image):
> >
> > #+BEGIN_SRC sh
> [...]
> > #+END_SRC
>
> Thanks for sharing!
>
> >> Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
> >> interest for you. On a per-file-basis this is: #+STARTUP inlineimages
> >
> > I was already aware of the toggle key sequence.  Thanks for the STARTUP
> > parameter!  A colon is missing, though ;)  --better use:
> >
> >     #+STARTUP: inlineimages
>
> Of course, thanks for clarifying. Damn copy&paste :-)
>
> --
> Karl Voit
>
>
>

[-- Attachment #2: Type: text/html, Size: 1632 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Managing Images with Org-mode?
  2012-08-04  7:01             ` Jeffrey Spencer
@ 2012-08-04  7:03               ` Bastien
  2012-08-04 19:34               ` Jude DaShiell
  1 sibling, 0 replies; 11+ messages in thread
From: Bastien @ 2012-08-04  7:03 UTC (permalink / raw)
  To: Jeffrey Spencer; +Cc: news1142, emacs-orgmode

Jeffrey Spencer <jeffspencerd@gmail.com> writes:

> Also think adding in features to enable some features of image-dired
> would be good. Some of my images are stored at 400dpi and I would
> like to view inline images at times but this is way to big for an
> inline image because goes out of the frame.

Patch welcome :)

-- 
 Bastien

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Managing Images with Org-mode?
  2012-08-04  7:01             ` Jeffrey Spencer
  2012-08-04  7:03               ` Bastien
@ 2012-08-04 19:34               ` Jude DaShiell
  1 sibling, 0 replies; 11+ messages in thread
From: Jude DaShiell @ 2012-08-04 19:34 UTC (permalink / raw)
  To: Jeffrey Spencer; +Cc: news1142, emacs-orgmode

In the interests of supporting accessibility, does a variable setting in 
org-mode exist such that if someone tries to add an image to org-mode's 
management and org-mode can't find a title and description for that image, 
the user gets prompted to enter both and then the image gets srored with 
its title and description?  Even better would be if the image title and 
description could be exported together into a file format which would also 
carry the language attribute used.  That way, a screen reader with 
software capable of handling the exported file format when coming across 
such a file could get a little more information from it other than just 
image. On Sat, 4 Aug 2012, Jeffrey Spencer wrote:

> Also think adding in features to enable some features of image-dired would
> be good. Some of my images are stored at 400dpi and I would like to view
> inline images at times but this is way to big for an inline image because
> goes out of the frame.
> 
> On Sat, Aug 4, 2012 at 4:49 AM, Karl Voit <devnull@karl-voit.at> wrote:
> 
> > * Karl Eichwalder <ke@gnu.Franken.de> wrote:
> > > Karl Voit <devnull@Karl-Voit.at> writes:
> > >
> > > Yes, I use something similar to create the thumbnails and the initial
> > > org code (I use 3rd level headlines instead of table, because I want to
> > > attache tags to every single image):
> > >
> > > #+BEGIN_SRC sh
> > [...]
> > > #+END_SRC
> >
> > Thanks for sharing!
> >
> > >> Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
> > >> interest for you. On a per-file-basis this is: #+STARTUP inlineimages
> > >
> > > I was already aware of the toggle key sequence.  Thanks for the STARTUP
> > > parameter!  A colon is missing, though ;)  --better use:
> > >
> > >     #+STARTUP: inlineimages
> >
> > Of course, thanks for clarifying. Damn copy&paste :-)
> >
> > --
> > Karl Voit
> >
> >
> >
> 

----------------------------------------------------------------
Hardware eventually fails; software eventually works, no amount of band
width can fix poor design

Jude <jdashiel-at-shellworld-dot-net>
<http://www.shellworld.net/~jdashiel/nj.html>

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-08-04 19:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-25 11:36 Managing Images with Org-mode? Karl Eichwalder
2012-07-26 13:38 ` Karl Eichwalder
2012-08-01 12:26   ` Bastien
2012-08-01 12:59     ` Karl Eichwalder
2012-08-01 13:23       ` Bastien
2012-08-02 20:02       ` Karl Voit
2012-08-03 14:44         ` Karl Eichwalder
2012-08-03 18:49           ` Karl Voit
2012-08-04  7:01             ` Jeffrey Spencer
2012-08-04  7:03               ` Bastien
2012-08-04 19:34               ` Jude DaShiell

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).