This commit is contained in:
Tykayn 2023-11-02 18:38:08 +01:00 committed by tykayn
parent 50b130fe9b
commit 1812e8b2ae
2 changed files with 21 additions and 19 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
cd /home/poule/encrypted/stockage-syncable/photos/gopro/hugin/to_equalize cd /home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin/to_equalize
for file in * for file in *
do do
magick "$file" -equalize "/home/poule/encrypted/stockage-syncable/photos/gopro/hugin/equalized/$file" magick "$file" -equalize "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin/equalized/$file"
done done

View File

@ -9,24 +9,26 @@
# exemple ./exif_batch.sh 36077 36159 # exemple ./exif_batch.sh 36077 36159
function batch_exif_photos { function batch_exif_photos {
local min=$1 # this is a WIP
local max=$2
local dir="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/rouen_oct23"
echo $(seq $min $max) # local min=$1
# local max=$2
for i in $(seq $min $max); do # local dir="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/rouen_oct23"
filename=$i #
file="$dir/GF0$filename.JPG" # echo $(seq $min $max)
file_assemblage="$dir/GF0$filename.JPG" #
# for i in $(seq $min $max); do
if [ -f "$file" ] && [ -f "$file_assemblage" ] ; then # filename=$i
echo "set the tags in assemblage $i from GF0$filename.JPG" # file="$dir/GF0$filename.JPG"
hugin_executor "/home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/output_pto/merging_0$i.pto" --stitching --prefix="assemblage_$i" -t=6 # file_assemblage="$dir/GF0$filename.JPG"
else #
echo "File $file does not exist." # if [ -f "$file" ] && [ -f "$file_assemblage" ] ; then
fi # echo "set the tags in assemblage $i from GF0$filename.JPG"
done # hugin_executor "/home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/output_pto/merging_0$i.pto" --stitching --prefix="assemblage_$i" -t=6
# else
# echo "File $file does not exist."
# fi
# done
} }
batch_exif_photos $1 $2 batch_exif_photos $1 $2