lindsayevans / galleRy
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
galleRy /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
README.md | ||
| |
Rakefile | ||
| |
c/ | ||
| |
config.yaml.example | ||
| |
i/ | ||
| |
images/ | ||
| |
j/ | ||
| |
t/ | ||
| |
template.haml.example |
README.md
galleRy
Simple Rake task to generate an image gallery.
Requirements
ruby, rake, RMagick, haml
Usage
- Copy
template.haml.exampletotemplate.haml - Copy
config.yaml.exampletoconfig.yaml - Put a bunch of images into the
idirectory - Run
rakefrom the command line
You will now have a bunch of thumbnails in the t directory, plus an index.html file containing the thumbnails.
If you add new images to i, just run rake again & it will add them.
Configuration
There are a few configuration options you may want to play around with in config.yaml; including image & thumbnail directories, template & output filenames, and maximum thumbnail width & height. Should be pretty self explanatory.
Other tasks
rake convert_images- just convert images inito thumbnailsrake build_template- just build the HTML filerake clean- remove all files int&index.htmlrake clobber- same asrake clean, but removes all files ini, too
TODO
- Pagination
- Make large image lightboxes linkable

