Difference between revisions of "Album - Photo gallery generator which has theme support"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m (OpenLink (PowerPC))
(Remove stub status)
 
(32 intermediate revisions by one user not shown)
Line 1: Line 1:
{{Articles|Debian|Mediaserver}}
+
{{Articles|Debian|Mediaserver|OpenLink|Ipkg}}
 
+
<table align=right>
 +
<tr>
 +
<td align=center colspan=2>
 +
http://www.imagemagick.org/image/logo.jpg
 +
</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
http://davepics.com/Theme_Album/tn/Dominatrix6.jpg
 +
</td>
 +
<td>
 +
http://download.freshmeat.net/screenshots/181_thumb.gif
 +
</td>
 +
</tr>
 +
<tr>
 +
<td align=center colspan=2>
 +
<small>[http://freshmeat.net/screenshots/181/181/ freshmeat.net: Screenshot of project album]</small>
 +
</td>
 +
</tr>
 +
</table>
 
==What is it?==
 
==What is it?==
 
'''Album''' - <ref>http://marginalhacks.com/Hacks/album/</ref> An HTML photo album generator that supports themes. It takes directories of images and creates all the thumbnails and HTML that you need.  
 
'''Album''' - <ref>http://marginalhacks.com/Hacks/album/</ref> An HTML photo album generator that supports themes. It takes directories of images and creates all the thumbnails and HTML that you need.  
Line 13: Line 32:
  
 
Look here for documentation: http://marginalhacks.com/Hacks/album/Docs/ <ref>[http://marginalhacks.com/Hacks/album/Docs/ MarginalHacks Album Documentation]</ref>
 
Look here for documentation: http://marginalhacks.com/Hacks/album/Docs/ <ref>[http://marginalhacks.com/Hacks/album/Docs/ MarginalHacks Album Documentation]</ref>
 +
 +
There are a few photo gallery alternatives:
 +
*[[Photo Gallery with igal - online image gallery generator]]
 +
*[[Photo album using gallery]]
 +
 
==Requirements==
 
==Requirements==
 
Minimum Requirements
 
Minimum Requirements
#[[w:Apache HTTP Server|Apache]] or [[w:LightHTTPD|LightHTTPD]] or [[w:Thttpd|Thttpd]]  
+
#[[w:Apache HTTP Server|Apache]] or [[w:Lighttpd|Lighttpd]] or [[w:Thttpd|Thttpd]] look at the following articles for pointers:
#The album [[w:perl|perl]] script<ref>http://marginalhacks.com/Hacks/album/Download.html MarginalHacks: Album Download</ref>
+
## [[LLMP]] or [[LAMP]]
 +
## [[Run a second instance of thttpd (on an alternate port) ]]
 +
#[[w:Perl|Perl]] and the script for MarginalHacks:Album<ref>http://marginalhacks.com/Hacks/album/Download.html MarginalHacks: Album Download</ref>
 
#[[w:Imagemagick|Imagemagick]] tools (specifically 'convert')
 
#[[w:Imagemagick|Imagemagick]] tools (specifically 'convert')
 
Optional Installation
 
Optional Installation
 
# Themes<ref>[http://davepics.com/Theme_Album/ Davepics.com - Snapshots of all Album themes]</ref>
 
# Themes<ref>[http://davepics.com/Theme_Album/ Davepics.com - Snapshots of all Album themes]</ref>
 
# [[w:ffmpeg|ffmpeg]] (for movie thumbnails)
 
# [[w:ffmpeg|ffmpeg]] (for movie thumbnails)
 +
# jhead (for reading EXIF info)<ref>[http://marginalhacks.com/redir.cgi?www.sentex.net/~mwandel/jhead/ jhead: Exif Jpeg header and thumbnail manipulator program]</ref>
  
==Installation==
+
==Install==
 
===FreeLink===
 
===FreeLink===
  apt-get install album
+
  apt-get install jhead ffmpeg album
===OpenLink (PowerPC)===
+
{{Warning|Untested}}
+
#Install the [[Precompiled C development environment, running on the LS]] (to get [[w:Perl|Perl]])
+
#Install [[Ipkg on the Linkstation (for end-users)]] and enable the NSLU2 Feed: [[Ipkg Package List: PowerPC]]
+
#Install imagemagick
+
ipkg install imagemagick
+
 
+
Then download and run Album
+
wget http://marginalhacks.com/bin/album.tar.gz
+
tar -xvzf album.tar.gz
+
cd album-3.12
+
mkdir -p /usr/local/bin
+
cp album /usr/local/bin/
+
chmod 0755 /usr/local/bin/album
+
  
 +
===OpenLink===
 +
{{Warning|'''''Untested'''''<br> if someone wants to test this out on the [[:Category:LS1|LS1]] and [[:Category:LS2|LS2]] running [[OpenLink]] and remove this warning banner that would be great }}
 +
====MIPsel====
 +
You'll have to compile everything from source for the MIPSel Linkstation.  This would probably work fine on any LinkStation, [[OpenLink]] or [[FreeLink]] but it takes FOREVER to compile imagemagik
  
===OpenLink (MIPSel)===
+
*Install the [[Precompiled C development environment, running on the LS]]
{{Warning|Untested}}
+
*Install imagemagik from source.<ref>[http://www.imagemagick.org/script/install-source.php#unix ImageMagick: Install from Source]</ref>
#Install the [[Precompiled C development environment, running on the LS]] (to get [[w:Perl|Perl]])
+
#Install imagemagik from source.<ref>[http://www.imagemagick.org/script/install-source.php#unix ImageMagick: Install from Source]</ref>
+
 
Download ImageMagick.tar.gz from [ftp://ftp.imagemagick.org ftp.imagemagick.org] or its mirrors and unpack it with this command:
 
Download ImageMagick.tar.gz from [ftp://ftp.imagemagick.org ftp.imagemagick.org] or its mirrors and unpack it with this command:
 
  wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz  
 
  wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz  
Line 52: Line 67:
 
   ./configure
 
   ./configure
 
   make
 
   make
If ImageMagick configured and compiled without complaint, you are ready to install it on your system. Administrator privileges are required to install. To install, type
+
If ImageMagick configured and compiled without complaint, you are ready to install it on your system. You need to be root to install. To install, type:
 
   make install
 
   make install
*Then download and run Album
+
 
 +
*Install jhead
 +
wget http://www.sentex.net/~mwandel/jhead/jhead-latest.tar.gz
 +
tar -xvzf jhead-latest.tar.gz
 +
cd jhead-?.?
 +
make
 +
chmod +x jhead
 +
cp jhead /usr/local/bin
 +
 
 +
*Download and run Album:
 
  wget http://marginalhacks.com/bin/album.tar.gz
 
  wget http://marginalhacks.com/bin/album.tar.gz
 
  tar -xvzf album.tar.gz
 
  tar -xvzf album.tar.gz
Line 62: Line 86:
 
  chmod 0755 /usr/local/bin/album
 
  chmod 0755 /usr/local/bin/album
  
==Running Album==
+
====PowerPC====
===Directory===
+
*Install the [[Precompiled C development environment, running on the LS]] (to get [[w:Perl|Perl]])
*You need a web directory to put themes and your photo  album.<ref>[http://marginalhacks.com/Hacks/album/Docs/Section_2.html marginalhacks.com Album Documentation: MINI HOW-TO]</ref> eg: <tt>/home/httpd/test</tt>  the URL will be: http://myserver/test/
+
*Install [[Ipkg on the Linkstation (for end-users)]] and enable the NSLU2 Feed: [[Ipkg Package List: PowerPC]]
 +
*Install imagemagick and ffmpeg
 +
ipkg install imagemagick
 +
ipkg install ffmpeg
  
*First create a directory and put some images in it. We'll call this: <tt>/home/httpd/test/Photos</tt>
+
*Install jhead
 +
  wget http://www.sentex.net/~mwandel/jhead/jhead-latest.tar.gz
 +
tar -xvzf jhead-latest.tar.gz
 +
cd jhead-?.?
 +
make
 +
chmod +x jhead
 +
cp jhead /usr/local/bin
  
===Using A Theme===
+
*Download and run Album:
 
+
wget http://marginalhacks.com/bin/album.tar.gz
I use this theme:<br>
+
tar -xvzf album.tar.gz
http://davepics.com/Theme_Album/tn/Dominatrix6.jpg
+
cd album-3.12
*http://davepics.com/Examples/Dominatrix6.html
+
  mkdir -p /usr/local/bin
*http://marginalhacks.com/Hacks/album/Themes/Dominatrix6.tar.gz
+
cp album /usr/local/bin/
 
+
chmod 0755 /usr/local/bin/album
To use a theme, download the theme .tar or .zip and unpack it.
+
 
+
Themes are found according to the -theme_path setting, which is a list of places to look for themes.  Those paths need to be somewhere under the top of your web directory, but not inside a photo album directory. It needs to be accessible from a web browser.
+
 
+
You can either move the theme into one of the theme_paths that album is already using, or make a new one and specify it with the <tt>-theme_path</tt> option.   
+
 
+
Then call album with the <tt>-theme</tt> option, with or without <tt>-theme_path</tt>:
+
 
+
  album -theme Dominatrix6 /home/httpd/test/Photos
+
  album -theme Dominatrix6 -theme_path /home/httpd/Themes/ /home/httpd/test/Photos
+
  
===Medium images===
+
==MarginalHacks/Album: MINI HOW-TO<ref>[http://marginalhacks.com/Hacks/album/Docs/Section_2.html marginalhacks.com Album Documentation: MINI HOW-TO]</ref>==
Full resolution images are usually too big for a web album, so we'll use medium images on the image pages:
+
===[http://marginalhacks.com/Hacks/album/Docs/Section_2.html#Simple_album Simple album]===
album -medium 33% /home/httpd/test/Photos
+
===[http://marginalhacks.com/Hacks/album/Docs/Section_2.html#Add_captions Add captions]===
 +
===[http://marginalhacks.com/Hacks/album/Docs/Section_2.html#Hiding_Photos Hiding Photos]===
 +
===[http://marginalhacks.com/Hacks/album/Docs/Section_2.html#Using_A_Theme Using A Theme]===
 +
===[http://marginalhacks.com/Hacks/album/Docs/Section_2.html#Medium_images Medium images]===
 +
===[http://marginalhacks.com/Hacks/album/Docs/Section_2.html#Adding_some_EXIF_captions Adding some EXIF captions]===
 +
===[http://marginalhacks.com/Hacks/album/Docs/Section_2.html#Adding_more_albums Adding more albums]===
  
 
==References==
 
==References==
 
<references/>
 
<references/>

Latest revision as of 23:35, 25 December 2007

logo.jpg

Dominatrix6.jpg

181_thumb.gif

freshmeat.net: Screenshot of project album

Contents

What is it?

Album - [1] An HTML photo album generator that supports themes. It takes directories of images and creates all the thumbnails and HTML that you need.

Album is a perl script, which means you need to be comfortable with or prepared to use the command-line. If you just want a point-and-click, you may wish to look elsewhere. Features:

  • You can use themes to choose or redesign the album "look and feel."
  • Recursively descends directories to make a hierarchy of photo albums
  • EXIF support, Video thumbnails...
  • Has a plugin system that allows you to write perl code to alter the behavior of album.
  • Slideshows, transparent overlays, credit tags, easy captions, and endless features!

Look here for documentation: http://marginalhacks.com/Hacks/album/Docs/ [2]

There are a few photo gallery alternatives:

Requirements

Minimum Requirements

  1. Apache or Lighttpd or Thttpd look at the following articles for pointers:
    1. LLMP or LAMP
    2. Run a second instance of thttpd (on an alternate port)
  2. Perl and the script for MarginalHacks:Album[3]
  3. Imagemagick tools (specifically 'convert')

Optional Installation

  1. Themes[4]
  2. ffmpeg (for movie thumbnails)
  3. jhead (for reading EXIF info)[5]

Install

FreeLink

apt-get install jhead ffmpeg album

OpenLink

Nuvola apps important.png 
WARNING!

Untested
if someone wants to test this out on the LS1 and LS2 running OpenLink and remove this warning banner that would be great


MIPsel

You'll have to compile everything from source for the MIPSel Linkstation. This would probably work fine on any LinkStation, OpenLink or FreeLink but it takes FOREVER to compile imagemagik

Download ImageMagick.tar.gz from ftp.imagemagick.org or its mirrors and unpack it with this command:

wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz 
tar -xvzf ImageMagick.tar.gz

Next configure and compile ImageMagick:

 cd ImageMagick-6.?.?
 ./configure
 make

If ImageMagick configured and compiled without complaint, you are ready to install it on your system. You need to be root to install. To install, type:

 make install
  • Install jhead
wget http://www.sentex.net/~mwandel/jhead/jhead-latest.tar.gz
tar -xvzf jhead-latest.tar.gz
cd jhead-?.?
make
chmod +x jhead 
cp jhead /usr/local/bin
  • Download and run Album:
wget http://marginalhacks.com/bin/album.tar.gz
tar -xvzf album.tar.gz
cd album-3.12
mkdir -p /usr/local/bin
cp album /usr/local/bin/
chmod 0755 /usr/local/bin/album

PowerPC

ipkg install imagemagick
ipkg install ffmpeg
  • Install jhead
wget http://www.sentex.net/~mwandel/jhead/jhead-latest.tar.gz
tar -xvzf jhead-latest.tar.gz
cd jhead-?.?
make
chmod +x jhead 
cp jhead /usr/local/bin
  • Download and run Album:
wget http://marginalhacks.com/bin/album.tar.gz
tar -xvzf album.tar.gz
cd album-3.12
mkdir -p /usr/local/bin
cp album /usr/local/bin/
chmod 0755 /usr/local/bin/album

MarginalHacks/Album: MINI HOW-TO[7]

Simple album

Add captions

Hiding Photos

Using A Theme

Medium images

Adding some EXIF captions

Adding more albums

References

  1. http://marginalhacks.com/Hacks/album/
  2. MarginalHacks Album Documentation
  3. http://marginalhacks.com/Hacks/album/Download.html MarginalHacks: Album Download
  4. Davepics.com - Snapshots of all Album themes
  5. jhead: Exif Jpeg header and thumbnail manipulator program
  6. ImageMagick: Install from Source
  7. marginalhacks.com Album Documentation: MINI HOW-TO