Imported SVG Feature Colors Swap Red and Blue Values

Report new issues and add information on existing ones.

Moderator: Kyete

Post Reply
NoPunkIntended
Posts: 2
Joined: Thu Jun 13, 2024 5:47 pm

Imported SVG Feature Colors Swap Red and Blue Values

Post by NoPunkIntended » 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:
FeatureToolProperties.png
FeatureToolProperties.png (20.94 KiB) Viewed 29355 times
Compare to how they look in the actual map view:
MapView.png
MapView.png (110.36 KiB) Viewed 29355 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!
Attachments
CustomFeatureSvgs.zip
(5.44 KiB) Downloaded 673 times

User avatar
Balmung
Posts: 233
Joined: Sun Mar 28, 2021 2:12 pm
Location: Germany

Re: Imported SVG Feature Colors Swap Red and Blue Values

Post by Balmung » Mon Jun 24, 2024 8:22 am

Did you tried to export the SVG as plain SVG instead of Inkscape SVG?

NoPunkIntended
Posts: 2
Joined: Thu Jun 13, 2024 5:47 pm

Re: Imported SVG Feature Colors Swap Red and Blue Values

Post by NoPunkIntended » Mon Jun 24, 2024 1:04 pm

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!

User avatar
Kyete
Site Moderator
Posts: 241
Joined: Tue Nov 11, 2014 4:52 pm

Re: Imported SVG Feature Colors Swap Red and Blue Values

Post by Kyete » Mon Jul 01, 2024 1:19 pm

Reproduced the issue and added it to our list. Thank you for letting us know and providing the SVGs!

-Katie

Post Reply