diff --git a/TODO.md b/TODO.md index 0441b8b..68957b2 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,5 @@ TODO: -* Draaiing van foto's bij importeren goedzetten * Pagina om één foto te bekijken * Taggen door gebruikers * Uploaden door gebruikers diff --git a/import_postprocess.sh b/import_postprocess.sh new file mode 100644 index 0000000..0c90f48 --- /dev/null +++ b/import_postprocess.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# ALBUM UPDATE + +# Hashes uit filenames. +find . -name '*#*' -exec rename -v "s/#//" {} \; + +# Orientatie-tags goedzetten. +find public/assets/borrel/april-2015/ -type f -exec exiftool -n -Orientation=1 "{}" \; +find public/assets/Eetpartijtjes/ruwinterbbq/ -type f -exec exiftool -n -Orientation=1 "{}" \; +find public/assets/Eetpartijtjes/Tapasavond-oktober-2011/ -type f -exec exiftool -n -Orientation=1 "{}" \; +find public/assets/Eetpartijtjes/Verjaardag-IV-bij-Wally/ -type f -exec exiftool -n -Orientation=1 "{}" \; +find public/assets/Uitstapjes/Final-Symphony-Wuppertal-2013-05-11/ -type f -exec exiftool -n -Orientation=1 "{}" \; +find public/assets/Universiteit/Oude-sneeuwfoto\'s/ -type f -exec exiftool -n -Orientation=1 "{}" \; +find public/assets/Weekenden/Susteren-2012 -type f -exec exiftool -n -Orientation=1 "{}" \; +find public/assets/Weekenden/Susteren-2013 -type f -exec exiftool -n -Orientation=1 "{}" \; +find public/assets/Weekenden/Wijhe-2016/ -type f -exec exiftool -n -Orientation=1 "{}" \; + +# Remove backup files. +find public/assets/ -type f -name '*_original' -delete