Peter's Web Gallery (Thumbnailshow and Slideshow)
Copyright peter@danninger.eu
Version: 06.09.2019
Deutsche Version
Why a own thumbnailshow and slideshow in the WWW ?
There are Dropbox, Google Drive, Microsoft OneDrive, Amazon Drive, and many other cloud providers.
Anybody, happy with these services and accepting the terms of use, OK, stop reading this.
Also all others, who are only interested in local slideshows on their computer, are not affected.
But all others, wanting to store their images and slideshows in the cloud,
but requiring full control and full rights on their images,
will need a private cloud and a web gallery for presentations.
The screenshots above are from the following
web gallery.
Why I've decided to implement my own web gallery ?
I want to present my slideshows not only on a local computer, but also in the WWW!
I want to keep full control and full rights on my images!
Considering this I mistrust all free cloud providers.
I want to make thumbnailshows and slideshows with low effort, also if lots of images.
I want to generate thumbnailshows and slideshows automatically.
I want to extract the image-title (above) and the image-caption (below) from the image-metadata.
So I can avoid to edit the slideshow after generating.
What are the image metadata:
Image-files have additional information in the file-header.
Which selection of these metadata can be used for the title and caption look below.
-
EXIF: Informations mostly supplied by the camera.
p.e. shooting date, aperture, distance, GPS-position, .....
-
IPTC: Informationen supplied by the image editing program.
p.e. copyright, titel, description, country, city, .....
-
XMP: new format (XML) for the IPTC-data with additional informations.
p.e. rating, label, keywords, .....
I organize and edit all my images with Adobe Lightroom,
so some useful informations für a slideshow will be added.
Many informations has supplied the camera, p.e. the shooting time.
Lightroom can generate nice local slideshows from the selected images,
optional as .pdf, .mp4 or .jpg.
As title (above) or caption (below) selected metadata can be displayed, an
example
Lightroom also offers some web galleries, but these cannot be adopted to personal needs.
Also in the WWW I didn't find a web gallery, which fits my requirements.
So I've started to program, but there is no need to reinvent the whole stuff:
Arguments for the personal use
-
The images are located on a personal computer or web storage, p.e. a NAS.
Important for all who wish tho decide where their images are stored.
-
The image-metadata can be used to display the image-title and image-caption.
There is no need to manually edit these in the slideshow file, very useful if lots of images.
But this is only possible if the images have been edited with a image editing software like Lightroom.
Alternatively all the titles and captions could be edited in the slideshow file.
-
The slideshow can be customized to the personal needs with a parameter-file. (slideShowParams.bat)
After customizing call "makeSlideShow.bat", to generate the thumbnailshow and the slideshow.
-
Thumbnailshow and slideshow will be generated automatically. (makeSlideShow.bat)
Implemented functionality
- Scroll forward and backward, also with wiping gestures on touchscreens.
- Scroll back to first image.
- Play the slideshow automatically, also with random follow, look at F1 below.
- Adjust image to suit the display size, alternatively also enlarging.
- Fullscreen mode (ideal for demonstrations).
- Download image, alternatively also in full size (if \oriPics\).
- Print image.
- Use the images metadata for title and caption.
- Display selected metadata of the image.
- Download all the metadata of the image (EXIF, IPTC, XMP).
- Show the location with Google Maps (if GPS location available).
- User interface is englisch, german, ...., easily adoptable. (\js\strings.js)
- Special key F1: Select play mode. (Standard: forward until the end)
- Special key F2: Display time. (Standard: 3 sec)
- Special key F3: Transition time. (Standard: 1 sec)
- Special key F4: Waiting time whe manually scrolling. (Standard: 1 sec)
Requirements, Conventions
-
Images with 3 digit running number in the directory: \slides\
Recommendation: image size: 1024px (long edge)
-
Evtl. larger images for downloading with same name in the directory: \oriPics\
Recommendation: image size: 1920px (long edge)
- Thumbnails with same name in the directory: \thumbnails\
Recommendation: image height: 100px
-
If you use the Google Static Maps API on own websites, you need a personal KEY.
You will get this key from Google.
Insert this key in slideShowParams.bat as: GOOGLEMAPSKEY
- Up-to-date webbrowser for viewing the shows (HTML5, CSS3).
- Recommendation: Edit images before with Lightroom or similar program.
Evaluated browsers and platforms (up-to-date versions)
- Windows 10:Firefox, Chrome, MS-IE, MS-Edge, Opera ... all OK
- Android 6:Firefox OK ... Chrome without data saving mode.
- Linux:Firefox OK
- Apple OS X:Safari, Chrome OK
- Apple iOS:not evaluated
Local test without webserver
If you try to test the slideshow local on your computer without a webserver,
you get evtl. a CORS-error message, that the image metadata cannot be read out.
Solution for Google Chrome: Command Parameter
Chrome_wo_CORS.bat ⇒⇒ "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir=C:\Temp %1
Solution for Mozilla Firefox: Configuration parameter in about:config
security.fileuri.strict_origin_policy ⇒⇒ false
There is also a Firefox-Plugin
Short instructions for personal usage
Feel free to use this software private, that means, without any commercial interest.
Please check also the rights of the used libraries, mentioned above.
If you use this software, you accept, that there ist no service, no guarantee, no warranty,
you use it at your own risk.
The most important settings in 'slideShowParams.bat'
Sample values are defined:
- TITEL=HdS Faschingsgaudi 2016 Page title for thumbnailshow and slideshow
- BILDNAME=FaschingHdS2016_ Name of images without the running number
- BILDANZ=10 Number of images, max. 999
-
SCRIPTSDIR=./ local script und style root directory,
if just one slideshow, like the demo
-
SCRIPTSDIR=../slideShow/ common script und style root directory,
if more slideshows, example look below
- ORIPICDIR=oriPics evtl. directory for large images to download
- ENLARGE=true evtl. enlarge images on large displays
- SENOTTO=false evtl. thumbnail show for www.senotto.de
- GOOGLEMAPSKEY="##########" evtl. your personal GoogleMaps-Key
-
ADDTITLE=true Title with metadata above the image
The title will be composited as follows:
TITEL_LI_1, TITEL_LI_2
TITEL_RE_1, TITEL_RE_2
-
ADDCAPTION=true Caption with metadata below the image
The caption will be composited as follows:
CAPTION_LI_1, CAPTION_LI_2
CAPTION_RE_1, CAPTION_RE_2
-
Simple example, description see below:
TITEL_LI_1="title"
CAPTION_LI_1="desc"
CAPTION_RE_1="date"
Example for more slideshows:
The folder "slideShow/" can remain as it is.
On the same level we create a folder for each slideshow.
These get subfolders for the images: "slides/", "thumbnails/" and evtl. "oriPics/".
Additionally we need 2 files: "makeSlideShow.bat" and "slideShowParams.bat".
The file "slideShowParams.bat" has to be customized for the slideshow,
then we can generate the slideshow and the thumbnailshow with "makeSlideShow.bat".
Description of supported metadata
Which metadata are in your images? This depends on your digicam und your image editing software.
Following selection from the EXIF, IPTC and XMP metadata is supported:
• name: image name (special case)
• title: image title (XMP | IPTC)
• headline: image headline (XMP | IPTC)
• desc: image description, caption (XMP | IPTC | EXIF)
• byline: Künstler (IPTC)
• creator: Ersteller (XMP)
• rights: copyright (XMP | IPTC | EXIF)
• date: shooting date (EXIF)
• time: shooting time (EXIF)
• make: camera manufacturer (EXIF)
• model: camera model (EXIF)
• artist: photographer (EXIF)
• userComment: user comment (EXIF)
• focalLen: lens focal length (EXIF)
• fNumber: lens aperture (EXIF)
• subjDist: subject distance (EXIF)
• expTime: exposure time (EXIF)
• expBias: exposure bias (EXIF)
• ISOSpeed: ISO speed (EXIF)
• pixelX: image width (EXIF)
• pixelY: image height (EXIF)
• latGrad: GPS latitude (EXIF)
• lonGrad: GPS longitude (EXIF)
• ele: GPS elevation (EXIF)
• country: country (XMP | IPTC)
• province: province (XMP | IPTC)
• city: city (XMP | IPTC)
• location: location (XMP | IPTC)
• rating: rating, p.e.: "4" (XMP)
• label: label, p.e.: "green" (XMP)
• exifVers: EXIF version (EXIF)
• creaTool: software, p.e.: Lightroom (XMP)
Copyright peter@danninger.eu Version: 06.09.2019