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

Consider using ImageBitmapOptions for createImageBitmap #7432

Open
loshjawrence opened this issue Dec 20, 2018 · 1 comment
Open

Consider using ImageBitmapOptions for createImageBitmap #7432

loshjawrence opened this issue Dec 20, 2018 · 1 comment

Comments

@loshjawrence
Copy link
Contributor

Got a heads-up from @pjcozzi. Looks like there will some way of seeing what createImageBitmap options are available. Consider using this in our createImageBitmap usage(which itself is not in cesium main yet, but has value when streaming image heavy models. See: #6624)

whatwg pr:
whatwg/html#4248

From that commit:

Constructs and returns a new ImageBitmapOptions dictionary whose attributes are
initialized to the corresponding attributes of the options dictionary. Only those
attributes which are recognized by the user agent are included in the returned dictionary. This
allows web applications to detect which ImageBitmap creation options are supported.

@OmarShehata
Copy link
Contributor

We've added createImageBitmap. Until this is supported by browsers, we actually attempt to decode a 1x1 image and see if it throws any errors given these options.

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

No branches or pull requests

3 participants