[josm-dev] XML Mappaint styles

Dirk Stöcker openstreetmap at dstoecker.de
Sun Sep 22 19:44:34 UTC 2013


On Sun, 22 Sep 2013, Malcolm Herring wrote:

> The image sizes are all within the 24x24 pixel limit, but have been generated 
> from SVG originals that have a much larger frame size and a transparent 
> backgound. Therefore the PNG reports a size of 60x80 for most of them, even 
> though the non-blank content is much smaller.
>
> As there are about 300 icons, I generate them with a script that invokes 
> Inkscape. It would a huge task to have to edit these manually.

One example with netpbm to strip the borders:

pngtopnm file.png | pnmcrop |pnmtopng >croppedfile.png

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)




More information about the josm-dev mailing list