hotosm / HDM-CartoCSS

CartoCSS project focused on the Humanitarian Data Model
Other
139 stars 41 forks source link

Higher icon resolution for printing #288

Open mhabets opened 7 years ago

mhabets commented 7 years ago

Could you provide higher icon resolution better appropriate for printing? or may be in svg format from which user can produce whatever desired icon resolution.

FYI: my rendering process steps below (which result in poor icon resolution):

carto project.mml --ppi 300 > HDM_style.xml
nik4.py -b 14.9761 12.0536 15.0659 12.1256 -z16 --dpi 300 --wld kousseri_hdm_z16_300dpi.wld HDM-CartoCSS/HDM_style.xml kousseri_hdm_z16_300dpi.png

If you see any think wrong in my process, please kindly advise me.

micahcochran commented 6 years ago

I would think that migrating to SVG version of the icons might help a little. openstreetmap-carto now has gone to a policy of almost exclusively accepting only SVG versions of icons. They would be a very good source for those icons. They are also CC0 licensed. Some of the icons could be migrated, but they are using a 14x14 pixel canvas.

Maki is now only releasing SVG on 15x15 pixel canvas. It seems that this project is using an 18x18 pixel canvas. I'm not sure if that is a deal breaker.

It would be some work to do this. It would just come down to identifying icons that there is no an equivalent SVG version.

yohanboniface commented 6 years ago

All sources are already SVG, see https://github.com/hotosm/HDM-CartoCSS/blob/master/icons/poi/_nori.svg and https://github.com/hotosm/HDM-CartoCSS/blob/master/icons/poi/_maki.svg so it certainly isn't that much work to replace PNG ones by thoses. ;)

Can't remember now why I did not keep them as SVG from the beginning. :s