Home

cphoto: photo generator

cphoto is an HTML photo album generator. It more or less takes a directory of images and creates thumbnails and cropped images (as you specify) and wraps it all up into a pretty HTML package. cphoto generates static sites so nothing has to be running on the server.

Screenshots

Install

These instructions are mostly Windows biased. cPhoto works fine on Unixy systems (I run it there) but I figured if you're running Unix you could figure out.

  1. Unzip the ZIP file into a directory. We'll call this directory cPhotoHome.

  2. Make sure you have JDK or JRE 1.4 in your path. To test that you have JDK 1.4 you can open a command prompt and type:

    c:\>java -version
    

You should see something like this:

java version "1.4.1-rc" Java(TM) 2 Standard Edition (build 1.4.1-rc-b19)
  1. Change directory to cPhotoHome/bin and execute cphoto.bat

If everything goes as expected, the UI should open.

command line

To run cphoto as a command line app you need to have cphoto.jar in your classpath and cPhotoHome/libs in your java.library.path. The main class is cbg.photo.CPhoto

If you're in the cPhotoHome directory the following will work:

java -classpath libs/cphoto.jar -Djava.library.path=libs cbg.photo.CPhoto

When running cphoto from the command line you must specify a photo src directory by using the -src switch.

Some examples:

-src ./photos or -src photos

-src d:/fun/Photos
-src ~/photos
-src /home/me/pics

Documentation

More info

License

Copyright® 2002-2011, Chris Grindstaff

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.