From e6b0c133546fb89080a4458987dfa1f3b0856a9d Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 3 Sep 2016 16:07:16 +0200 Subject: [PATCH] Fix rotation through exiftool after importing. --- TODO.md | 1 - import_postprocess.sh | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 import_postprocess.sh 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