A ruby gem to quickly generate static HTML photo gallery pages.
|
|
4 months ago | |
|---|---|---|
| bin | 4 months ago | |
| lib | 4 months ago | |
| sig | 5 months ago | |
| templates | 5 months ago | |
| test | 4 months ago | |
| .gitignore | 4 months ago | |
| Gemfile | 5 months ago | |
| LICENSE.txt | 5 months ago | |
| README.md | 4 months ago | |
| Rakefile | 5 months ago | |
| fotos.gemspec | 5 months ago |
A Ruby gem for creating static HTML photo galleries from organized image directories. Fotos extracts EXIF data, generates thumbnails, and creates date-organized HTML galleries.
Install the gem locally:
$ bundle exec rake install
gem 'fotos', git: 'https://src.niebo.net/lukasz/fotos.git'
Fotos provides three main commands for processing images:
$ fotos extract -z PATH_TO_ZIP [-d DESTINATION]
Extracts images from a ZIP archive to a destination directory (defaults to current directory).
$ fotos organize -s SOURCE_DIR -d DESTINATION_DIR
Reads EXIF data from images and organizes them into date-named directories (DD-MM-YYYY format). Only supports JPEG/JPG files currently.
$ fotos build -s SOURCE_DIR [-d OUTPUT_DIR] [-t]
Creates an HTML photo gallery from organized image directories:
-s specifies the source directory containing date-organized subdirectories-d specifies the output directory (defaults to current directory)-t automatically generates missing thumbnailsThe gallery includes:
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/lbadura/fotos.
The gem is available as open source under the terms of the MIT License.