wiki:Help/Base64

Version 10 (modified by Klumbumbus, 4 months ago) (diff)

works on linux and macos too

Languages:

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

Examples:

  • 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 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