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

Getting 'Image corrupt or truncated'? #4

Open
RedHatter opened this issue Jan 27, 2017 · 4 comments
Open

Getting 'Image corrupt or truncated'? #4

RedHatter opened this issue Jan 27, 2017 · 4 comments

Comments

@RedHatter
Copy link

I can't get this to work. Any time I try and create a png it's corrupted. When I try and display it I get 'Image corrupt or truncated.'

I've put together an example here (slightly modfied to run outside of a webworker).

@robertleeplummerjr
Copy link

I ended up making my own: https://robertleeplummerjr.github.io/CanvasWorker/

@RedHatter
Copy link
Author

I don't see anything to do with encoding png images in that project.

@robertleeplummerjr
Copy link

robertleeplummerjr commented Jan 27, 2017

It merges images together via web workers into a canvas, then you use: canvas.toDataURL('image/png')

@RedHatter
Copy link
Author

I need to encode the png without use of canvas. Hence a png encoder library.

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