question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

marker was not found

See original GitHub issue

when 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:closed
  • Created 8 years ago
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
MShah-Fintechcommented, Sep 23, 2020

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' }

4reactions
krishnaTORQUEcommented, Sep 1, 2020

I am facing the same issue Error: marker was not found

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found