Page 1 of 1

Imported SVG Feature Colors Swap Red and Blue Values

Posted: Sat Jun 22, 2024 11:09 am
by NoPunkIntended
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:
FeatureToolProperties.png
FeatureToolProperties.png (20.94 KiB) Viewed 64180 times
Compare to how they look in the actual map view:
MapView.png
MapView.png (110.36 KiB) Viewed 64180 times
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!

Re: Imported SVG Feature Colors Swap Red and Blue Values

Posted: Mon Jun 24, 2024 8:22 am
by Balmung
Did you tried to export the SVG as plain SVG instead of Inkscape SVG?

Re: Imported SVG Feature Colors Swap Red and Blue Values

Posted: Mon Jun 24, 2024 1:04 pm
by NoPunkIntended
Balmung wrote:
Mon Jun 24, 2024 8:22 am
Did you tried to export the SVG as plain SVG instead of Inkscape SVG?
I just tried exporting as a plain SVG as well and can confirm that does not fix the issue. Thank you for your suggestion though; it was worth a try!

Re: Imported SVG Feature Colors Swap Red and Blue Values

Posted: Mon Jul 01, 2024 1:19 pm
by Kyete
Reproduced the issue and added it to our list. Thank you for letting us know and providing the SVGs!

-Katie