jimp-dev/jimp

marker was not found on big images

Open

#654 建立於 2018年11月8日

在 GitHub 查看
 (7 留言) (3 反應) (0 負責人)JavaScript (13,218 star) (785 fork)batch import
bughelp wanted

描述

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

貢獻者指南