Php-photo-gallery is a project mainly written in ..., it's free.
a minimal php photo gallery
resize thubmnail and images creates frame based minimal photo gallery
usage:
gallery.py
where
source_dir dir where your images are
dest_dir dir where gallery will be created
will create ftp uploadable site in dest_dir