hugin: up suite de dossiers et exif batch pour enlever le 0 avant les numéros d'assemblage

This commit is contained in:
Tykayn 2024-02-09 10:42:36 +01:00 committed by tykayn
parent 340a0d456e
commit 34522094c0
2 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@
################################### ###################################
# exemple # exemple
# bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/exif_batch.sh 36077 38695 INBOX_a_assembler/rouen_3 # bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/exif_batch.sh 36077 38695 INBOX_a_assembler/rouen_3
# va assigner les données exif des photos gopro GF036077.JPG à leur assemblage assemblage_063077.jpg # va assigner les données exif des photos gopro GF36077.JPG à leur assemblage assemblage_063077.jpg
#folder="rouen/rouen_oct23" #folder="rouen/rouen_oct23"
@ -25,11 +25,11 @@ function batch_exif_photos {
for i in $(seq $min $max); do for i in $(seq $min $max); do
filename=$i filename=$i
file="$dir/GF0$filename.JPG" file="$dir/GF$filename.JPG"
file_assemblage="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/assemblage_0$i.jpg" file_assemblage="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/assemblage_0$i.jpg"
if [ -f "$file" ] && [ -f "$file_assemblage" ]; then if [ -f "$file" ] && [ -f "$file_assemblage" ]; then
echo "set the tags in assemblage $i from GF0$filename.jpg" echo "set the tags in assemblage $i from GF$filename.jpg"
exiftool -tagsFromFile "$file" $file $file_assemblage -overwrite_original exiftool -tagsFromFile "$file" $file $file_assemblage -overwrite_original
echo "updated the exift tags of $file_assemblage" echo "updated the exift tags of $file_assemblage"
else else

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
echo "génération de fichier de batch" echo "génération de fichier de batch"
# lancer:
# bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/suite.sh 132 145
echo "" > /home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_a_assembler/assemble_plusieurs_dossiers.sh echo "" > /home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_a_assembler/assemble_plusieurs_dossiers.sh
dossier_start=$1 dossier_start=$1