cesium icon indicating copy to clipboard operation
cesium copied to clipboard

createImageBitmap is deprecated.

Open mharol opened this issue 10 months ago • 6 comments

What happened?

Getting the following bug in my app.

Image

Reproduction steps

...

Sandcastle example

No response

Environment

Browser: CesiumJS Version: Operating System:

mharol avatar May 02 '25 12:05 mharol

Image

mharol avatar May 02 '25 12:05 mharol

Hi @mharol, could you provide a Sandcastle example that duplicates the issue?

ggetz avatar May 02 '25 12:05 ggetz

Look at this discussion https://github.com/whatwg/html/issues/8085

mharol avatar May 02 '25 13:05 mharol

My guess is you should change this line imageOrientation: t.flipY ? "flipY" : "none",

to imageOrientation: t.flipY ? "flipY" : "from-image",

mharol avatar May 02 '25 13:05 mharol

Is this issue still open?

hmloftus avatar May 15 '25 15:05 hmloftus

Working on a PR for this issue. Here's a sandcastle that reproduces it. (Note that the message gets logged as a warning to the dedicated Issues tab in Chrome's dev tools).

mzschwartz5 avatar Jun 10 '25 15:06 mzschwartz5

Unfortunately, this change was made too soon - users still operate on browsers that support the old flag.

And since the only reliable way of detecting support for this flag is to load an image (the way we do for some other bitmap options), rather than doing more of that, I'm just going to revert this commit. Better to have a deprecation warning than a total failure.

https://github.com/CesiumGS/cesium/pull/12871

mzschwartz5 avatar Sep 05 '25 18:09 mzschwartz5