Instructions
This is a pretty simple way to make a photo album. I've used older
incarnations of this program for the photo albums on this site. It'll handle
rotating images, shrinking photos, making thumbnails and generating an HTML
file. The GUI also has a feature to select which images will be included in
the final album.
I've tested this with JRE 1.5.0 under Linux, but I think it'll work under other platforms too.
To launch the GUI, run:
To launch the command line interface, run
I've tested this with JRE 1.5.0 under Linux, but I think it'll work under other platforms too.
To launch the GUI, run:
java -jar AlbumGUI.jarfrom the directory containing the jar file. To launch it from elsewhere, add the path to the jar. There should be a screen popping up. To start, push the "select" button and select a directory with the images or type in the path. Then press "load" to load the album. It'll take a few seconds to a few minutes depending on the number of pictures. Then all the pictures should show up. Left-clicking once on a picture will rotate it 90 degrees clockwise. By clicking and holding the shift button, the picture will rotate 90 degrees counter-clockwise. Finally, holding control and clicking will toggle whether the picture is to be included in the final album or not. If not, the original filename will be displayed. The final step to making an album is to push the "make album" button. That will create a new directory (write into an existing one) with an index.html file and a pics/ directory with the resized pictures (640x480) and a t_pics/ directory with the thumbnails (128x96).
To launch the command line interface, run
java -jar AlbumCmd.jar [options] <path to album>The path to the album is relative to the current directory. With no options, it will generate an album as it is. This means that pictures that aren't rotated properly will still not be rotated properly in the final album. The -rotate option will take care of that. To rotate, figure out the index of the picture or pictures that need to be rotated. For example, to rotate images 003, 023 and 145, run:
java -jar AlbumCmd.jar -rotate 3 23 145From the directory that contains the pics/ and t_pics/ directories. Here are the other options:
Options: -html generate HTML file only -rotate rotate 90 degrees clockwise -thumbsize WxH set thumbnail size to width W and height H (default: 128x96) -row N set the number of thumbnails per row in the HTML file to NThere are probably a bunch of bugs in there. Let me know what you find.