jimp-dev/jimp

marker was not found on big images

Open

#654 aperta il 8 nov 2018

Vedi su GitHub
 (7 commenti) (3 reazioni) (0 assegnatari)JavaScript (785 fork)batch import
bughelp wanted

Metriche repository

Star
 (13.218 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Expected Behavior

i want to resize my image

Current Behavior

when I try to do anything with big images I get this error

Failure Information (for bugs)

E:\Server\Server.js:118 if (err) throw err; ^

Error: marker was not found at decodeScan (E:\Server\node_modules\jpeg-js\lib\decoder.js:324:15) at Object.parse (E:\Server\node_modules\jpeg-js\lib\decoder.js:744:29) at Object.decode [as image/jpeg] (E:\Server\node_modules\jpeg-js\lib\decoder.js:983:11) at Jimp.parseBitmap (E:\Server\node_modules@jimp\core\dist\utils\image-bitmap.js:117:53) at Jimp.parseBitmap (E:\Server\node_modules@jimp\core\dist\index.js:498:32) at E:\Server\node_modules@jimp\core\dist\index.js:440:15 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:447:3)

Steps to Reproduce

newname = path to file

Jimp.read(newname, (err, lenna) => { if (err) throw err; lenna .resize(1024, Jimp.AUTO) // resize //.quality(60) // set JPEG quality //.greyscale() // set greyscale .write(newname); // save });

here are the pictures I used

occu-lux-250-jb-bo-a arthur_ hi_res

Screenshots

Context

  • Jimp Version:5.6
  • Operating System: windows server 2012 R2 Standerd
  • Node version: 6.11.3

Failure Logs

Guida contributor