Changes between Version 14 and Version 19 of Help/Base64


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • Help/Base64

    v14 v19  
    22= Base64 =
    33
    4 If you want to use inline encoding of icons for [wiki:Maps Imageries], [wiki:Presets], [wiki:Styles] or [wiki:Rules] here are some hints:
     4If you want to use inline encoding of icons for [wikitr:/Maps Imageries], [wikitr:/Presets Presets], [wikitr:/Styles Styles] or [wikitr:/Rules Rules] here are some hints:
    55
    6 * You can use web tools to convert your image to the base64 code, e.g.
    7  * [http://www.base64-image.de base64-image.de]
     6* You can use web tools to convert your image to the base64 code, e.g.:
     7 * [https://www.base64-image.de base64-image.de]
    88 * [https://base64.guru/converter/encode/image base64.guru]
    99* ''Before'' you convert your image to the base64 code you should minimize it to make the base64 a lot shorter (without loosing quality):
    10  * for `.png` files: Use e.g. [http://compresspng.com/ compresspng.com].
    11  * 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].
     10 * for `.png` files: Use e.g. [https://compresspng.com/ compresspng.com],
     11 * for `.jpeg` files: Use e.g. [https://jpegcompress.com/ jpegcompress.com],
     12 * 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 [wikitr:/DevelopersGuide/DefaultPresets#NewIcons].
    1213* Code structure:
    1314 * {{{data:image/png;base64,...databytes...}}}
     
    1718
    1819----
    19 Back to [wiki:Styles#Iconhandling Styles#Iconhandling]
     20Back to [wikitr:/Styles#Iconhandling Styles#Iconhandling]