Search:
Login
Preferences
Help/Guide
About Trac
Register
Forgot your password?
Wiki
Timeline
Changelog
Browse Source
View Tickets
New Ticket
Roadmap
Builds
Sonar
Search
Context Navigation
+0
Start Page
Index
History
Editing Help/Base64
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
[[TranslatedPages]] = Base64 = If you want to use inline encoding of icons for [wiki:Maps Imageries], [wiki:Presets], [wiki:Styles] or [wiki: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. [http://www.base64-image.de base64-image.de] or [https://base64.guru/converter/encode/image base64.guru]. ''Before'' you convert your image to the base64 code you should minimize it to make the base64 a lot shorter (without loosing quality): * for `.png` files: Use e.g. [http://compresspng.com/ compresspng.com]. * for `.svg` files: Use e.g. [https://github.com/RazrFalcon/svgcleaner-gui/releases 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 [wiki:DevelopersGuide/DefaultPresets#NewIcons]. ---- Back to [wiki:Styles#Iconhandling Styles#Iconhandling]
Note:
See
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.