up remove previous zero by default
This commit is contained in:
parent
cc5abf6215
commit
340a0d456e
|
@ -92,7 +92,7 @@ function renameFile(fileName: string): void {
|
||||||
const filePath = path.join(hugin_assemblages_script_output_path, fileName);
|
const filePath = path.join(hugin_assemblages_script_output_path, fileName);
|
||||||
|
|
||||||
if (fs.existsSync(filePath)) {
|
if (fs.existsSync(filePath)) {
|
||||||
const newFileName = `assemblage_0${startNumber}.jpg`;
|
const newFileName = `assemblage_${startNumber}.jpg`;
|
||||||
const newFilePath = path.join(envois_todo_panoramax, newFileName);
|
const newFilePath = path.join(envois_todo_panoramax, newFileName);
|
||||||
|
|
||||||
// console.log('rename: ', filePath, newFilePath)
|
// console.log('rename: ', filePath, newFilePath)
|
||||||
|
@ -137,7 +137,7 @@ function batch_move_assembled_files(startNumber: number, endNumber: number) {
|
||||||
console.log('fileNames', fileNames)
|
console.log('fileNames', fileNames)
|
||||||
|
|
||||||
for (let i = startNumber; i <= endNumber; i++) {
|
for (let i = startNumber; i <= endNumber; i++) {
|
||||||
const fileName = `assemblage_0${i}.jpg`;
|
const fileName = `assemblage_${i}.jpg`;
|
||||||
|
|
||||||
renameFile(fileName);
|
renameFile(fileName);
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,8 @@ let mini_arguments: any = minimist(process.argv.slice(2))
|
||||||
let gopro_fusion_separated_photos_folder = ''
|
let gopro_fusion_separated_photos_folder = ''
|
||||||
let disable_pto_write = false;
|
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 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 goproMax = 80801 // et maximum. correspond à GF080866.JPG + GB080866.JPG
|
||||||
let addExifToolInScript = true;
|
let addExifToolInScript = true;
|
||||||
|
@ -146,6 +147,7 @@ function makeBashScriptHugin(minmax: any) {
|
||||||
scriptsContent += '\n\n# capture n°' + currentNumber
|
scriptsContent += '\n\n# capture n°' + currentNumber
|
||||||
scriptsContent +=
|
scriptsContent +=
|
||||||
'\nif [ ! -f ' + outputStitchedFolder + stitchedFileName + '.jpg ]; then \n' +
|
'\nif [ ! -f ' + outputStitchedFolder + stitchedFileName + '.jpg ]; then \n' +
|
||||||
|
// '\n echo ("assemblage à faire: ' + outputStitchedFolder + stitchedFileName + '.jpg") \n' +
|
||||||
'\n if [ -f ' + input_front_jpg + ' ]; then \n' +
|
'\n if [ -f ' + input_front_jpg + ' ]; then \n' +
|
||||||
' hugin_executor' +
|
' hugin_executor' +
|
||||||
' ' + ptoPath + ' ' +
|
' ' + ptoPath + ' ' +
|
||||||
|
|
Loading…
Reference in New Issue