Skip to content

A Foswiki gallery plugin for JPEG photos from digital cameras.

Notifications You must be signed in to change notification settings

phkehl/PhotoGalleryPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhotoGalleryPlugin

A Foswiki gallery plugin for JPEG photos from digital cameras.

This plugin renders galleries from photos attached to topics. Galleries render as a grid of square thumbnails. Thumbnails are created using the Epeg (https://github.com/mattes/epeg) library ("insanely fast JPEG thumbnail scaling") via the Image::Epeg (https://metacpan.org/pod/Image::Epeg) Perl module. Clicking on a thumbnail zooms the image to the original attached photo. Currently PhotoSwipe (http://photoswipe.com) by Dmitry Semenov is used to display the photos. It allows zooming and browsing the image gallery with the keyboard, the mouse and finger swipes on touch devices. This plugin adds a slideshow functionality not currently present in the original PhotoSwipe gallery. The thumbnails expose a tools menu by hovering over their top right corner. Available tools include losslessly rotating the photo using exiftran (https://www.kraxel.org/blog/linux/fbida/), editing the attachment comment, correcting the attachment timestamp to the photo exposure date, moving the attachment to another topic, and deleting the attachment.

This plugin works only with JPEG images and it works best with photos from digital cameras that have EXIF data embedded. It can display PNG, GIF and SVG graphics as well.

A PatternSkin extension that replaces the default upload form with a bulk upload form is included, too. This is currently based on DropZoneJS (http://www.dropzonejs.com) by Matias Meno.

See the file data/System/PhotoGalleryPlugin.txt for the full documentation.

PhotoGalleryPlugin Screenshot