up remove previous zero by default

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

View File

@ -92,7 +92,7 @@ function renameFile(fileName: string): void {
const filePath = path.join(hugin_assemblages_script_output_path, fileName);
if (fs.existsSync(filePath)) {
const newFileName = `assemblage_0${startNumber}.jpg`;
const newFileName = `assemblage_${startNumber}.jpg`;
const newFilePath = path.join(envois_todo_panoramax, newFileName);
// console.log('rename: ', filePath, newFilePath)
@ -137,7 +137,7 @@ function batch_move_assembled_files(startNumber: number, endNumber: number) {
console.log('fileNames', fileNames)
for (let i = startNumber; i <= endNumber; i++) {
const fileName = `assemblage_0${i}.jpg`;
const fileName = `assemblage_${i}.jpg`;
renameFile(fileName);

View File

@ -23,7 +23,8 @@ let mini_arguments: any = minimist(process.argv.slice(2))
let gopro_fusion_separated_photos_folder = ''
let disable_pto_write = false;
let previous_zero = '0'// numéro de photo gopro minimum front et back. correspond à GF080800.JPG + GB080800.JPG
// let previous_zero = '0'// numéro de photo gopro minimum front et back. correspond à GF080800.JPG + GB080800.JPG
let previous_zero = ''// numéro de photo gopro minimum front et back. correspond à GF080800.JPG + GB080800.JPG
let goproMin = 80800// numéro de photo gopro minimum front et back. correspond à GF080800.JPG + GB080800.JPG
let goproMax = 80801 // et maximum. correspond à GF080866.JPG + GB080866.JPG
let addExifToolInScript = true;
@ -146,6 +147,7 @@ function makeBashScriptHugin(minmax: any) {
scriptsContent += '\n\n# capture n°' + currentNumber
scriptsContent +=
'\nif [ ! -f ' + outputStitchedFolder + stitchedFileName + '.jpg ]; then \n' +
// '\n echo ("assemblage à faire: ' + outputStitchedFolder + stitchedFileName + '.jpg") \n' +
'\n if [ -f ' + input_front_jpg + ' ]; then \n' +
' hugin_executor' +
' ' + ptoPath + ' ' +