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

createImageBitmap #2277

Closed
Prinzhorn opened this Issue Feb 3, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@Prinzhorn

It allows you to explicitly decode an image (e.g. jpeg) from different sources without using an intermediary Image element. This makes high performance image stuff much faster. For example if you have a jpeg in memory as ArrayBuffer (i.e. from xhr) you can now decode it directly as a Blob created from the ArrayBuffer. The old way would be to use createObjectURL(blob) and then loading it using an Image element, which adds a ton of unnecessary latency (can be multiple ms). Another benefit is that it is available inside WebWorkers, which the Image element is not.

It's already shipped in Firefox and in Chrome Canary behind a flag.

@rubenlg

This comment has been minimized.

Show comment
Hide comment

rubenlg commented Jul 7, 2017

Same as #2801

@Fyrd

This comment has been minimized.

Show comment
Hide comment

@Fyrd Fyrd closed this Jul 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment