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

JPG: "Image given has not completed loading" #213

Open
lapidus opened this issue Feb 16, 2017 · 1 comment
Open

JPG: "Image given has not completed loading" #213

lapidus opened this issue Feb 16, 2017 · 1 comment

Comments

@lapidus
Copy link

lapidus commented Feb 16, 2017

I am experiencing a somewhat odd issue ...
For JPG images (such as the attached one) that was downloaded with nodejs (fs.writeFile), Caman gives this error:

Image given has not completed loading
    at Caman.finishInit /node_modules/caman/dist/caman.full.js:463:22
    at Caman.nodeFileReady /node_modules/caman/dist/caman.full.js:372:19
    at node_modules/caman/dist/caman.full.js:7:61
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:416:3)

If I open this image in the browser and resave it, Caman will not produce any errors. Hence I suspect there is some kind of "JPG header" that Caman needs to interpret the JPG properly?
Did anyone else try Caman on a .jpg that was created via fs.writefile? Any ideas appreciated ...

0ab695ba-6994-11d7-ae76-0004755038ce

@kakaggarwal
Copy link

Is anyone working on this ?

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