The simplest way to make a static image library, with only a little Python, minimal HTML, and nothing else
./generate_gallery.py ./sample_images
Alternatively, instead of sample_images
, pass a full path to a directory of images of your choice:
./generate_gallery.py /path/to/image_directory
The script will create an index.html
in that directory, and view it with Firefox.
cd simple_img_gallery
python ./setup.py install --prefix=${INSTALL_PATH}
where INSTALL_PATH
must be on your PYTHONPATH
.
The installation step (to a directory that lies on your PYTHONPATH
)
allows you to call generate_gallery.py
from any directory.
- Tile
N
images per row: pass an argument after the directory path. (The default is3
.) For example, to tile6
per row:
generate_gallery.py /path/to/image_directory 6
-
Click on any image to zoom (thank you browser)
-
Right click on any image and "Save Image As" (if you want it for your plots)
Note:
- Currently only supports tiling the images in alphabetical order.
Future features:
- Support randomization, down-sampling