File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ function playSound(times, delay = 500) {
195
195
const imageWidth = 1920 ;
196
196
const imageHeight = 1080 ;
197
197
const input = process . argv [ 2 ] || prompt ( "Define input file: " ) ;
198
- const output = path . join ( __dirname , "./../out " ) ;
198
+ const output = path . join ( __dirname , "./../images " ) ;
199
199
200
200
fsExtra . emptyDirSync ( output ) ;
201
201
console . time ( "Processing Time" ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const { Worker } = require('worker_threads');
5
5
const util = require ( 'util' ) ;
6
6
const { exec } = require ( 'child_process' ) ;
7
7
8
- const folderPath = path . join ( __dirname , "./../out " ) ;
8
+ const folderPath = path . join ( __dirname , "./../images " ) ;
9
9
const outputFolder = path . join ( __dirname , "./../output" ) ;
10
10
const tempFolder = path . join ( __dirname , "./../temp" ) ;
11
11
const MAX_WORKERS = 24 ;
@@ -151,7 +151,7 @@ async function main() {
151
151
for ( let index = 0 ; index < resolvedResults . length ; index ++ ) {
152
152
const tempFilePath = resolvedResults [ index ] ;
153
153
let fileContent = fs . readFileSync ( tempFilePath ) ;
154
- const identifyFilePath = path . join ( tempFolder , `${ path . parse ( tempFilePath ) . name } .identify ` ) ;
154
+ const identifyFilePath = path . join ( tempFolder , `${ path . parse ( tempFilePath ) . name } .id ` ) ;
155
155
156
156
if ( fs . existsSync ( identifyFilePath ) ) {
157
157
const identifyLines = fs . readFileSync ( identifyFilePath , 'utf8' ) . split ( '\n' ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ async function decodeImage(imagePath) {
94
94
const buffer = await image . raw ( ) . toBuffer ( ) ;
95
95
let nibbles = [ ] ;
96
96
const binaryFilePath = path . join ( './temp' , `${ path . parse ( imagePath ) . name } .bin` ) ;
97
- const identifyFilePath = path . join ( './temp' , `${ path . parse ( imagePath ) . name } .identify ` ) ;
97
+ const identifyFilePath = path . join ( './temp' , `${ path . parse ( imagePath ) . name } .id ` ) ;
98
98
const totalPixels = width * height ;
99
99
let lastReportedProgress = 0 ;
100
100
You can’t perform that action at this time.
0 commit comments