From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Photo Gallery Date: Sat, 13 Feb 2010 16:59:08 -0700 Message-ID: <87fx54wuur.fsf@gmail.com> References: <3cbb63d01002131536o13f739c6n11d42289b47cd6c7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NgRtL-0004VI-3q for emacs-orgmode@gnu.org; Sat, 13 Feb 2010 18:59:15 -0500 Received: from [140.186.70.92] (port=35628 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NgRtK-0004Uw-IC for emacs-orgmode@gnu.org; Sat, 13 Feb 2010 18:59:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NgRtJ-0004IC-NI for emacs-orgmode@gnu.org; Sat, 13 Feb 2010 18:59:14 -0500 Received: from mail-yx0-f186.google.com ([209.85.210.186]:50609) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgRtJ-0004I4-KY for emacs-orgmode@gnu.org; Sat, 13 Feb 2010 18:59:13 -0500 Received: by yxe16 with SMTP id 16so450675yxe.1 for ; Sat, 13 Feb 2010 15:59:12 -0800 (PST) In-Reply-To: <3cbb63d01002131536o13f739c6n11d42289b47cd6c7@mail.gmail.com> (Chao Lu's message of "Sat, 13 Feb 2010 18:36:53 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Chao Lu Cc: emacs-orgmode@gnu.org This would require some work on your part, but it shouldn't be hard to use Org-babel and your favorite scripting language to automatically generate the html required to display an image, for each file in a directory of photographs, and then use the :results html setting to drop the resulting html directly into your org-mode buffer. For example the following is a minimal working example. --8<---------------cut here---------------start------------->8--- * example generating html of pictures w/Org-babel #+source: picture_list #+begin_src sh ls ~/Pictures/Photo\ Booth #+end_src #+begin_src ruby :var pics=picture_list :results html list = pics.map{ |p| path = p.join(" ")}. map{ |p|"\t
  • #{p}
  • " }.join("\n") "
      \n#{list}\n
    " #+end_src #+results: #+BEGIN_HTML #+END_HTML --8<---------------cut here---------------end--------------->8--- for information on Org-babel see http://orgmode.org/worg/org-contrib/babel/ Best -- Eric Chao Lu writes: > Dear all, > > Is it possible to use org to create a photo gallery? Which mean I need to insert a batch of image file, but do the links by hand could be so heavy work, any quick ways? > > Thanks, > > Chao > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode