Version 2 (modified by 11 years ago) ( diff ) | ,
---|
If you want to use inline encoding of icons for Presets or Styles 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. 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 but you need to disable Entferne unnötige Zeichen im "d"-Attribut
(something like remove unneeded characters in "d"-attribute
), otherwise JOSM cannot correctly handle the resulting code.
Back to Styles#Iconhandling