Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: node-canvas was built without JPEG support #757

Open
cc4393c opened this issue Aug 28, 2021 · 6 comments
Open

Error: node-canvas was built without JPEG support #757

cc4393c opened this issue Aug 28, 2021 · 6 comments

Comments

@cc4393c
Copy link

cc4393c commented Aug 28, 2021

This error occurd when I was running the file

src/algorithms/image-processing/seam-carving/tests/resizeImageWidth.test.js

at Object.<anonymous> (~/javascript-algorithms-master/src/algorithms/image-processing/seam-carving/__tests__/resizeImageWidth.test.js:45:7)
describe('resizeImageWidth', () => {
  it('should perform content-aware image width reduction', () => {
    // @see: https://jestjs.io/docs/asynchronous
    return Promise.all([
      loadImage(testImageBeforePath), // ERROR at this line !!!
      loadImage(testImageAfterPath),
    ]).then(([imgBefore, imgAfter]) => {
      // Original image.
      // ...
    });
  });
});

Do I need to reinstall canvas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@cc4393c and others