Changes between Version 18 and Version 19 of DevelopersGuide/DefaultPresets


Ignore:
Timestamp:
2015-12-26T19:41:38+01:00 (10 years ago)
Author:
zermes
Comment:

adding information about #12201 SVG viewBox bug, please fix the text if needed

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/DefaultPresets

    v18 v19  
    2020* The preferred file format is '''svg''' (for lossless scaling). If this is not possible then png.
    2121* Check if the svg file correctly works with JOSM. There are some svg libraries which do not work with JOSM (the images get deformed). If you have such a file try the following workaround: create a new svg document with Inkscape, copy the svg data to this new file, resize the page to the data and save.
     22* Check the code of the file in a text editor. Search for '''viewBox''' value in the beginning of the file. If the icon is, for example, in 16x16 pixels, and if you made it in Inkscape (at least this happens in 0.91 version) and have defined in Document Properties 16,00000 by 16,00000 pixels, probably in the file code you have these values '''viewBox="0 0 16.000002 16.000001"'''. Change it to '''viewBox="0 0 16 16"''' or you will have problems (see #12201 and the fix [o31865])
    2223* svg icons are automatically cleaned up to reduce file size in the JOSM build. So there is no need to do this step manually before uploading svg files to svn. See comment:35:ticket:10479 and comment:10:ticket:10877
    2324* The icon should be identifiable at a size of '''16 pixels'''. This is the size the icons are displayed in the [[Help/MapView|Map View]].