<?xml version="1.0"?>
<!DOCTYPE content [ <!ENTITY nbsp " "> ]>
<rdf:RDF xml:base="http://snarfed.org/rdf"
         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:dc="http://purl.org/dc/elements/1.1/">

<rdf:Description rdf:about="http://snarfed.org">
  <dc:title> snarfed.org  </dc:title>
  <dc:description> draw group stream of consciousness </dc:description>
  <dc:creator> Ryan Barrett &lt;snarfed at ryanb dot org&gt; </dc:creator>
  <dc:language> en </dc:language>
  <dc:format> text/html </dc:format>
  <dc:rights> Copyright 2002-2007 Ryan Barrett </dc:rights>
</rdf:Description>

<rdf:Description rdf:about="http://snarfed.org/space/album">
  <dc:title> album </dc:title>
  <dc:creator> Ryan Barrett &lt;snarfed at ryanb dot org&gt; </dc:creator>
  <dc:date> 2003-01-01T05:00:00Z </dc:date>
  <dc:language> en </dc:language>
  <dc:format> text/html </dc:format>
  <dc:rights> Copyright 2002-2007 Ryan Barrett </dc:rights>

  <content>
    <p><img src="/space/album.jpg" alt="/space/album.jpg" title="" /><strong>About</strong></p>

<p>We've created a simple macro that creates a photo album interface for pictures.
Our macro generates thumbnails for a set of pictures and shows the thumbnails on
the same page. Each thumbnail is a link to a slideshow! "web-sized" images are
used in the slideshow, and a link to the full-sized version is also provided. By
"web-sized" we mean 800px, but you can define that in the parameters, please see
<strong>Usage</strong>.</p>

<p>Here is an example <a href="/gallery/Draw Group">Draw Group</a></p>

<p><strong>Download</strong></p>

<p>You can <a href="http://cs.stanford.edu/~maulik/MakeAlbum.jar">download MakeAlbum.jar</a>
here.</p>

<p><strong>Usage</strong></p>

<p>version-a-little-more-than-before:</p>

<p>Goodbye config file! Hello plug and play!</p>

<p>To use make-album just pop the jar into your application's WEB-INF/lib directory
and restart the server. Make a new snip using this following tag:</p>

<div class='p-shadow'><pre><code>{make-album:albumDirName}
</code></pre></div>

<p><br class='clearing' />Where albumDirName is a directory in your application's images directory.
Default thumbnail size is 240px and default web-size is 800px. if you'd like to
change them, you can specify those as parameters like so:</p>

<div class='p-shadow'><pre><code>{make-album:albumDirName|thumb_size|web_size}
</code></pre></div>

<p><br class='clearing' />Where thumb_size and web_size are integers.</p>

<p>Also, if you're running this on <strong>linux, unix</strong>, etc. you will need to modify
your run script to include this java flag:</p>

<div class='p-shadow'><pre><code>java -Djava.awt.headless=true
</code></pre></div>

<p><br class='clearing' />Please see <strong>Notes</strong> for more.</p>

<p><strong>Future plans</strong></p>

<p>Next on the list is to make a <strong>very</strong> user friendly way to enter captions....</p>

<p><strong>Authors</strong></p>

<p><a href="http://maulik.net/">Maulik</a> and <a href="http://ryan.barrett.name/">Ryan</a></p>

<p><strong>Notes</strong></p>

<p>Fix! Some of you may have noticed that some thumbnails/websized images ended up
being of a psychedelic nature. if you use the new jar, you will no longer notice
that effect as the method for resizing pictures has been changed.</p>

<p>Source and a Makefile are included in MakeAlbum.jar.</p>

<p>As promised, more on the headless issue: On Linux (or *nix), please run java
with the -Djava.awt.headless=true option. (You can add this to run.sh.) If this
system property is not set, AWT will try to connect to an X Windows display,
which usually won't work since SnipSnap is a server. If you're on Linux, and you
see "make-album: none" in red when you use the make-album macro, this should
solve your problem.</p>

<p>Stay tuned!</p>

  </content>

  <rdf:Seq>

<rdf:li>
<rdf:Description rdf:about="#1178178520.51">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> album </dc:title>
  <dc:creator> Oded Hassidi </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    I can't make it work!!! :(<br />
<br />
I put some images under my &lt;snip-snap application path&gt;/images/fun path and I cannot see a damn thing the only thing I get is:<br />
<br />
Please wait while make-album generates thumbnails. This may take a while (2-5 seconds per picture). This message will only be displayed once.done.<br />
Please wait while make-album generates web images. This may take a while (2-5 seconds per picture). This message will only be displayed once.done.<br />
Just a few more seconds to generate the HTML<br />
<br />
Can u help please?<br />
<br />
Oded
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1178235444.34">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> album </dc:title>
  <dc:creator> Ryan </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    hi oded! sorry it's not working.<br />
<br />
is this a public site? if so, could you post the link to your snip? it'd be useful to see the HTML that album generates.<br />
<br />
also, which OS is this? if linux or *nix, check that the permissions in your <code>images/fun</code> directory are set so that snipsnap - specifically, the user running snipsnap - can write to it.
  </content>
</rdf:Description>
</rdf:li>

  </rdf:Seq>
</rdf:Description>
</rdf:RDF>
