keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.35k stars 1.74k forks source link

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

Open huntfx opened 2 months ago

huntfx commented 2 months ago

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):

mars-dlx commented 1 month ago

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.