marker was not found
See original GitHub issuewhen I use the following code with a corrupt image I get the error “marker was not found” but I can not capture it using “catch (function (err) {”. How can I catch the error?
Jimp.read(localFilePath).
then(function (image) {...........}).
catch(function (err) {
console.log('get error');
});
C:\Users\xxx\Documents\progetto\node_modules\jpeg-js\lib\decoder.js:323
throw "marker was not found";
^
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (3 by maintainers)
Top Results From Across the Web
Fix “An Unknown or Invalid JPEG Marker type is Found”
Modify the file extension. One of the prime reasons for “An unknown or invalid JPEG marker type is found” is an incorrect file...
Read more >Fix Photoshop Error: Invalid JPEG Marker Type is Found
While using Photoshop a lot of people have encountered issues like invalid jpeg marker type is found. This can cause distress in their...
Read more >How to Fix “An Unknown or Invalid JPEG Marker Type is ...
Methods to fix ?Unknown or Invalid JPEG marker? error · Change the image file extension · Rename the image file · Convert the...
Read more >How to fix default marker-icon.png not found in vue 2 leaflet ...
How to fix default marker-icon.png not found in vue 2 leaflet app? · What's the url of your IMG tag on map? –...
Read more >build plate localization marker not found on bambulab ... - Reddit
Just got my X1C in yesterday, it's a pretty impressive printer. It just works. I'm getting a "localization marker not found" error with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am also facing the same issue. I have checked my image on which i am making processing and it is not corrupted image.
Error in Jimp.read() Error: marker was not found at decodeScan (/var/task/node_modules/jpeg-js/lib/decoder.js:344:15) at constructor.parse (/var/task/node_modules/jpeg-js/lib/decoder.js:799:29) at Object.decode [as image/jpeg] (/var/task/node_modules/jpeg-js/lib/decoder.js:1091:11) at Jimp.parseBitmap (/var/task/node_modules/@jimp/core/dist/utils/image-bitmap.js:196:53) at Jimp.parseBitmap (/var/task/node_modules/@jimp/core/dist/index.js:431:32) at /var/task/node_modules/@jimp/core/dist/index.js:373:15 at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3) { methodName: 'constructor' }
I am facing the same issue
Error: marker was not found