Simple Rake task to generate an image gallery.
ruby, rake, RMagick, haml
- Copy
template.haml.example
totemplate.haml
- Copy
config.yaml.example
toconfig.yaml
- Put a bunch of images into the
i
directory - Run
rake
from 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.
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.
rake convert_images
- just convert images ini
to thumbnailsrake build_template
- just build the HTML filerake clean
- remove all files int
&index.html
rake clobber
- same asrake clean
, but removes all files ini
, too
- Pagination
- Make large image lightboxes linkable