Imported SVG Feature Colors Swap Red and Blue Values
Posted: Sat Jun 22, 2024 11:09 am
Hello! I have noticed a weird bug in Other World Mapper version 1.1.1. while building maps using custom SVGs: the colors display correctly in the Feature Tool Properties section at the bottom-right corner of the program, but then the images' colors are changed when in the map view.
Here's a screenshot of them showing as expected in the Feature Tool Properties: Compare to how they look in the actual map view: Comparing the RGB values from the SVG files directly with the RGB values obtained from an eyedropper tool on a screenshot of the map view, I found that the red and blue values in RGB are swapped in the actual map display. For example, an RGB value of (211, 17, 17) from the source SVG becomes (17, 17, 211) in the map view.
I have tested this on two different Windows 10 computers, one with a fresh install of Other World Mapper. I have been able to reproduce this in both an existing map and a fresh map, created using all defaults. I have also confirmed that the SVGs show correctly when displayed in other programs, like Google Chrome and Firefox.
For your testing, I have attached a ZIP file containing all of the SVG files I have been able to reproduce this with. I created all of these SVGs using Inkscape. Please let me know if you need any additional information from me. Thank you for looking into this!
Here's a screenshot of them showing as expected in the Feature Tool Properties: Compare to how they look in the actual map view: Comparing the RGB values from the SVG files directly with the RGB values obtained from an eyedropper tool on a screenshot of the map view, I found that the red and blue values in RGB are swapped in the actual map display. For example, an RGB value of (211, 17, 17) from the source SVG becomes (17, 17, 211) in the map view.
I have tested this on two different Windows 10 computers, one with a fresh install of Other World Mapper. I have been able to reproduce this in both an existing map and a fresh map, created using all defaults. I have also confirmed that the SVGs show correctly when displayed in other programs, like Google Chrome and Firefox.
For your testing, I have attached a ZIP file containing all of the SVG files I have been able to reproduce this with. I created all of these SVGs using Inkscape. Please let me know if you need any additional information from me. Thank you for looking into this!