Version 11 (modified by 6 years ago) ( diff ) | ,
---|
Languages:
- English
- français
- Nederlands
- русский
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, e.g. base64-image.de.
Before you convert your image to the base64 code you should minify it to make the base64 a lot shorter (without loosing quality):
- for
.png
files: Use e.g. compresspng.com. - for
.svg
files: 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
Note:
See TracWiki
for help on using the wiki.