Compare commits
2 Commits
afd6628508
...
7de64ae953
Author | SHA1 | Date |
---|---|---|
Tykayn | 7de64ae953 | |
Tykayn | 8691264f25 |
|
@ -37,19 +37,35 @@ function batch_exif_photos {
|
||||||
|
|
||||||
|
|
||||||
# test with previous zero
|
# test with previous zero
|
||||||
|
if [ -f "$file_assemblage_with_zero" ]; then
|
||||||
|
echo "."
|
||||||
|
else
|
||||||
|
echo "missing assemblage with zero $file_assemblage_with_zero"
|
||||||
|
fi
|
||||||
|
if [ -f "$file_assemblage" ]; then
|
||||||
|
echo "."
|
||||||
|
else
|
||||||
|
echo "missing assemblage $file_assemblage_with_zero"
|
||||||
|
fi
|
||||||
if [ -f "$file_with_zero" ] && [ -f "$file_assemblage_with_zero" ]; then
|
if [ -f "$file_with_zero" ] && [ -f "$file_assemblage_with_zero" ]; then
|
||||||
echo "set the tags in assemblage $i from GF$filename_with_zero.jpg"
|
echo "set the tags in assemblage $i from GF$filename_with_zero.jpg"
|
||||||
exiftool -tagsFromFile "$file_with_zero" $file_with_zero $file_assemblage_with_zero -overwrite_original
|
exiftool -tagsFromFile "$file_with_zero" $file_with_zero $file_assemblage_with_zero -overwrite_original
|
||||||
echo "updated the exift tags of $file_assemblage_with_zero"
|
echo "updated the exift tags of $file_assemblage_with_zero"
|
||||||
else
|
else
|
||||||
echo "batch_exif_photos: File $file_with_zero does not exist."
|
echo "/!\ batch_exif_photos: File with zero:
|
||||||
if [ -f "$file" ] && [ -f "$file_assemblage" ]; then
|
$file_with_zero
|
||||||
|
does not exist."
|
||||||
|
# if [ -f "$file" ] && [ -f "$file_assemblage" ]; then
|
||||||
echo "set the tags in assemblage $i from GF$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
|
||||||
echo "batch_exif_photos: File $file does not exist."
|
# echo "/!\ batch_exif_photos: File:
|
||||||
fi
|
# $file
|
||||||
|
# OR assemblage:
|
||||||
|
# $file_assemblage
|
||||||
|
# does not exist."
|
||||||
|
# fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -58,5 +74,5 @@ function batch_exif_photos {
|
||||||
|
|
||||||
batch_exif_photos $1 $2 $3
|
batch_exif_photos $1 $2 $3
|
||||||
|
|
||||||
bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/move_batch.sh $1 $2
|
bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/move_batch.sh $1 $2
|
||||||
bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $1 $2
|
# bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $1 $2
|
||||||
|
|
|
@ -34,12 +34,16 @@ let outputStitchedFolder = base_gopro_folder + '/hugin_assemblages_script_output
|
||||||
if (mini_arguments['addExifToolInScript']) {
|
if (mini_arguments['addExifToolInScript']) {
|
||||||
addExifToolInScript = mini_arguments['addExifToolInScript']
|
addExifToolInScript = mini_arguments['addExifToolInScript']
|
||||||
}
|
}
|
||||||
if (mini_arguments['previous_zero']) {
|
|
||||||
previous_zero = '0'
|
|
||||||
}
|
|
||||||
if (mini_arguments['goproMin']) {
|
if (mini_arguments['goproMin']) {
|
||||||
goproMin = mini_arguments['goproMin']
|
goproMin = mini_arguments['goproMin']
|
||||||
}
|
}
|
||||||
|
if(goproMin < 100000){
|
||||||
|
previous_zero = '0'
|
||||||
|
}
|
||||||
|
if (mini_arguments['previous_zero']) {
|
||||||
|
previous_zero = '0'
|
||||||
|
}
|
||||||
|
console.log('# prise en compte du zéro? ', previous_zero)
|
||||||
if (mini_arguments['goproSubFolder']) {
|
if (mini_arguments['goproSubFolder']) {
|
||||||
gopro_fusion_separated_photos_folder = mini_arguments['goproSubFolder']
|
gopro_fusion_separated_photos_folder = mini_arguments['goproSubFolder']
|
||||||
}
|
}
|
||||||
|
@ -179,7 +183,7 @@ function makeBashScriptHugin(minmax: any) {
|
||||||
console.log('# fin de l\'écriture des '+count_pto_made_files+' fichiers PTO')
|
console.log('# fin de l\'écriture des '+count_pto_made_files+' fichiers PTO')
|
||||||
}
|
}
|
||||||
|
|
||||||
let hugin_batch_command = 'bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/exif_batch.sh ' + goproMin + ' ' + goproMax
|
let hugin_batch_command = 'bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/exif_batch.sh ' + goproMin + ' ' + goproMax + ' ' + gopro_fusion_separated_photos_folder
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -211,8 +215,8 @@ function makeBashScriptHugin(minmax: any) {
|
||||||
*/
|
*/
|
||||||
function makePto(absolutePath: string, currentNumber: string):string {
|
function makePto(absolutePath: string, currentNumber: string):string {
|
||||||
|
|
||||||
let front_picture_name = absolutePath + '/GF' + currentNumber + '.' + extension_photo_source;
|
let front_picture_name = absolutePath + '/GF' + currentNumber + '.' + extension_photo_source;
|
||||||
let back_picture_name = absolutePath + '/GB' + currentNumber + '.' + extension_photo_source;
|
let back_picture_name = absolutePath + '/GB' + currentNumber + '.' + extension_photo_source;
|
||||||
|
|
||||||
|
|
||||||
// console.log('# front_picture_name', front_picture_name)
|
// console.log('# front_picture_name', front_picture_name)
|
||||||
|
|
|
@ -24,10 +24,12 @@ for i in $(seq -f "%03g" ${start_num} ${end_num}); do
|
||||||
if [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" ]; then
|
if [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" ]; then
|
||||||
mv -- "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" "${dst_file}"
|
mv -- "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" "${dst_file}"
|
||||||
echo "Déplacé ${src_file} -> ${dst_file}"
|
echo "Déplacé ${src_file} -> ${dst_file}"
|
||||||
else
|
# else
|
||||||
echo "Fichier '${src_file}' introuvable."
|
# echo "Fichier '${src_file}' introuvable."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "dossier de destination:
|
||||||
|
$dst_dir"
|
||||||
# supprimer les fichiers pto
|
# supprimer les fichiers pto
|
||||||
bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $start_num $end_num
|
# bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $start_num $end_num
|
||||||
|
|
|
@ -10,17 +10,18 @@ fi
|
||||||
start_num="$1"
|
start_num="$1"
|
||||||
end_num="$2"
|
end_num="$2"
|
||||||
src_base_name="merging_"
|
src_base_name="merging_"
|
||||||
|
count=0
|
||||||
|
|
||||||
|
echo "supprimer des fichiers PTO "
|
||||||
# Déplacer des fichiers depuis le répertoire actuel vers le nouveau dossier
|
# supprimer des fichiers PTO
|
||||||
for i in $(seq -f "%03g" ${start_num} ${end_num}); do
|
for i in $(seq -f "%03g" ${start_num} ${end_num}); do
|
||||||
src_file="${src_base_name}${i}.pto"
|
src_file="${src_base_name}${i}.pto"
|
||||||
|
|
||||||
if [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_PTO_hugin/${src_file}" ]; then
|
if [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_PTO_hugin/${src_file}" ]; then
|
||||||
rm -rf "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_PTO_hugin/${src_file}"
|
rm -rf "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_PTO_hugin/${src_file}"
|
||||||
count=$((count+1))
|
count=$((count+1))
|
||||||
else
|
# else
|
||||||
echo "Fichier '${src_file}' introuvable."
|
# echo "Fichier '${src_file}' introuvable."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue