Version 9 (modified by Klumbumbus, 7 months ago) (diff)

update svg cleaner link, project moved


If you want to use inline encoding of icons for Presets, Styles or Rules here are some hints.


  • data:image/png;base64,...databytes...
  • data:image/svg+xml;base64,...databytes...

You can use web tools to convert your image to the base64 code like this one.

If you use svg you should clean up the svg file before you convert it to the base64 code, to make the base64 a lot shorter. For windows you can use e.g. svg cleaner. When using this one you can use the "complete" preset to clean up the svg file. More information about possible problems with svg in JOSM see DevelopersGuide/DefaultPresets.

Back to Styles#Iconhandling