From e3a70363b4bd827692b9a0dfe49b527d3e099d04 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Thu, 2 Nov 2023 17:17:22 +0100 Subject: [PATCH] remove exiftool by default in the generated script --- hugin-gopro-fusion/hugin_batch.sh | 2 +- hugin-gopro-fusion/main.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/hugin-gopro-fusion/hugin_batch.sh b/hugin-gopro-fusion/hugin_batch.sh index 35fb7af8..93143daf 100755 --- a/hugin-gopro-fusion/hugin_batch.sh +++ b/hugin-gopro-fusion/hugin_batch.sh @@ -22,7 +22,7 @@ function batch_exif_photos { if [ -f "$file" ] && [ -f "$file_assemblage" ] ; then echo "set the tags in assemblage $i from 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_080530 -t=6 + 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 diff --git a/hugin-gopro-fusion/main.ts b/hugin-gopro-fusion/main.ts index b37cb96a..5edc0cb5 100644 --- a/hugin-gopro-fusion/main.ts +++ b/hugin-gopro-fusion/main.ts @@ -16,8 +16,9 @@ let mini_arguments: any = minimist(process.argv.slice(2)) * ces trois paramètres permettent de traiter par lots des assemblages sans avoir à scanner le dossier */ let gorpro_fusion_separated_photos_folder = 'rouen_oct23' -let goproMin = '15424'// numéro de photo gopro minimum front et back. +let goproMin = '80864'// numéro de photo gopro minimum front et back. let goproMax = '80865' // et maximum +let addExifToolInScript = false; if (mini_arguments['goproMin']) { goproMin = mini_arguments['goproMin'] @@ -85,6 +86,10 @@ function makeBashScriptHugin(minmax: any) { '--stitching ' + '--prefix=' + stitchedFileName + ' -t=6' + + + if(addExifToolInScript){ + scriptsContent += '\n # complétion des données gps depuis une des photos assemblées' + '\nexiftool ' + '-TagsFromFile "' + @@ -93,6 +98,7 @@ function makeBashScriptHugin(minmax: any) { '-SubSecTimeOriginal' + ' -Make="Tykayn" "' + dossier_assemblages_output + '/' + stitchedFileName + '.' + extension_photo_source + '" ' + '-overwrite_original "' + dossier_assemblages_output + '/' + stitchedFileName + '.' + extension_photo_source + '" ' + } // console.log('ptoContent', ptoContent) writeFile(ptoFileName, ptoContent) @@ -196,7 +202,7 @@ k i1 t1 p"252 628 484 351 745 156 1008 41 1121 2 1992 4 2289 127 2571 317 2769 5 #hugin_outputImageTypeHDRCompression LZW #hugin_outputStacksMinOverlap 0.7 #hugin_outputLayersExposureDiff 0.5 -#hugin_outputRangeCompression 2 +#hugin_outputRangeCompression 1 #hugin_optimizerMasterSwitch 6 #hugin_optimizerPhotoMasterSwitch 21