Changes between Version 11 and Version 12 of Help/Base64


Ignore:
Timestamp:
2019-08-31T14:58:21+02:00 (6 years ago)
Author:
Klumbumbus
Comment:

some additions

Legend:

Unmodified
Added
Removed
Modified
  • Help/Base64

    v11 v12  
    11[[TranslatedPages]]
    2 If you want to use inline encoding of icons for [wiki:Presets], [wiki:Styles] or [wiki:Rules] here are some hints.
     2= Base64 =
     3
     4If you want to use inline encoding of icons for [wiki:Maps Imageries], [wiki:Presets], [wiki:Styles] or [wiki:Rules] here are some hints.
    35
    46Examples:
     
    68* {{{data:image/svg+xml;base64,...databytes...}}}
    79
    8 You can use web tools to convert your image to the base64 code, e.g. [http://www.base64-image.de base64-image.de].
     10You 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].
    911
    10 ''Before'' you convert your image to the base64 code you should minify it to make the base64 a lot shorter (without loosing quality):
     12''Before'' you convert your image to the base64 code you should minimize it to make the base64 a lot shorter (without loosing quality):
    1113* for `.png` files: Use e.g. [http://compresspng.com/ compresspng.com].
    1214* 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].
    1315
    14 
    1516----
    1617Back to [wiki:Styles#Iconhandling Styles#Iconhandling]