Changes between Initial Version and Version 1 of Help/Base64


Ignore:
Timestamp:
2014-10-31T20:56:40+01:00 (11 years ago)
Author:
Klumbumbus
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Help/Base64

    v1 v1  
     1If you want to use inline encoding of icons for [wiki:Presets] or [wiki:Styles] here are some hints.
     2
     3Examples:
     4* {{{data:image/png;base64,...databytes...}}}
     5* {{{data:image/svg+xml;base64,...databytes...}}}
     6
     7You can use web tools to convert your image to the base64 code like [http://webcodertools.com/imagetobase64converter this one].
     8
     9If you use svg you maybe want to 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. [http://sourceforge.net/projects/svgcleaner 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.
     10
     11
     12----
     13Back to [wiki:Styles#Iconhandling Styles#Iconhandling]