From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Eichwalder Subject: Re: Managing Images with Org-mode? Date: Fri, 03 Aug 2012 16:44:17 +0200 Message-ID: References: <87fw86re63.fsf@gnu.org> <2012-08-02T21-51-18@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxJ6z-0000io-Ky for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 10:44:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxJ6y-0004BT-BZ for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 10:44:21 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44444 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxJ6y-0004B5-4p for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 10:44:20 -0400 In-Reply-To: <2012-08-02T21-51-18@devnull.Karl-Voit.at> (Karl Voit's message of "Thu, 2 Aug 2012 22:02:02 +0200") 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: news1142@Karl-Voit.at Cc: emacs-orgmode@gnu.org Karl Voit 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