#@thumbsup/theme-card-flow
One of the built-in themes for https://github.com/thumbsup/thumbsup.
#Template CARD & FLOWs This is a template for thumbsup, based on the template card and flow. For the home and albumpages the card template is used and for the gallery pages the flow template.
Information
Gallery generated successfully!
164 albums, 23413 photos, 235 videos
##Features
## first create a photoapp folder
> mkdir ~/photoapp
> cd ~/photoapp
## install the theme
> git clone https://bitbucket.org/peter_siebler/theme-cards-flow.git
## install tools
> brew install exiftool
> brew install graphicsmagick
> brew install ffmpeg
> brew install gifsicle
> brew install dcraw
> npm --save install https://github.com/thumbsup/thumbsup.git
#Requirements
## run tumbsup locally
> node_modules/thumbsup/bin/thumbsup.js --config config.json
## run tumbsup global
> thumbsup --config config.json
Tip: Always define the paths for all entries absolute and not relative. This ensures that ThumbsUp can always use the correct paths.
## sample for configuration config.json
{
"input": "PATH TO OUTPUT",
"output": "./fotobuch",
"title": "Fotobuch AUTOR",
"include-raw-photos": false,
"photo-quality": 90,
"thumb-size": 360,
"large-size": 1200,
"embed-exif": true,
"sort-albums-by": "title",
"sort-albums-direction": "desc",
"theme-path": "PROJECTFOLDER/theme-cards-flow/theme",
"theme-settings": "PATH TO PROPERTYFILE.json"
"cleanup": true
}
## sample for theme-settings
{
"author": "AUTORNAME",
"logo": "public/assets/avatar.jpg",
"application": "tumbsUp Fotobook",
"appVersion": "2.1.1",
"assets": "public/assets/",
"tabHome": "Start",
"albumPrefix": "Album",
"albumsPrefix": "Alben",
"albumCardTitle": "Öffne Album ",
"copyright": "2019 ..... All rights reserved.",
"navigation": "navi/fbtemp2.json",
"footer": "<span>Testlab Fotopalbum</span>",
"folders": {
"input": "PATH FOTOS",
"output": "OUTPUT"
},
"writeMetaData": {
"target": "METADATAFOLDER",
"linkfolder": "meta/"
}
}
For this application, the first photo is checked if the EXIF data (Artist, Copyright, ImageDescription, DocumentName) is set there.
for justified-gallery the first foto will be uses as cover teaser.
folder fotos
cover.img
+ Album 1
cover.img
foto1.img
foto2.img
+ Ablum 1.1
cover.img
foto1.img
foto2.img
+ Ablum 2
Album 2.1
cover.img
foto1.img
foto2.img
Album 2.2
cover.img
foto1.img
foto2.img
+ Ablum 3
foto1.img
foto2.img
#!/bin/bash
# -----------------------------
# call ./setcover.sh cover.jpg
# chmod u+x setcover.sh
# -----------------------------
fileName=$1
echo $fileName
AUTOR="AUTOR NAME"
AVATAR="avatar.jpg"
DESCRIPTION="Lorem Ipsum is simply dummy text of the printing and typesetting industry."
LINK="URL"
exiftool -Artist="$AUTOR" -Copyright="$AVATAR" -ImageDescription="$DESCRIPTION" -DocumentName="$LINK" $fileName
##Screens
##Developing
Testing the theme
> node_modules/thumbsup/bin/thumbsup.js --input /photos --output ./tmp --theme-path ./theme