kepler.gl icon indicating copy to clipboard operation
kepler.gl copied to clipboard

[Bug][Firefox] Additive layer blending results in wrong colour in image export

Open huntfx opened this issue 1 year ago • 1 comments

Describe the bug When using the layer blending mode as "additive", going on "Share > Export Image" will sometimes result in the wrong colours in Firefox. Tried with Chrome and I was able to get a successful export each time.

For example, pink becomes purple and blue becomes green.

To Reproduce Steps to reproduce the behaviour:

  1. Upload a CSV file with point data in Firefox
  2. Set blending mode to additive
  3. Export the image

Expected behaviour Exports with the correct colours.

Screenshots image image image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox
  • Version: 128

huntfx avatar Jul 21 '24 22:07 huntfx

Tracked it to src/utils/src/dom-to-image.ts:198

I found that the Red color component of result dots differs in Firefox and Chrome. Green and Blue are the same. I can assume this is some Firefox bug.

mars-dlx avatar Sep 10 '24 07:09 mars-dlx