NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

We would like to print maps using Mapnik.

The SVG export seems not to be perfect, but PNG is nice - the only problem is the low resulution.

Is there an "easy" way to export in a around 300dpi instead of screen resolution?

Basically in the OSM Mapnik stylesheet all values are pixels. Using the scale parameter in the TileMill project file, caused strange results.

asked 15 Dec '12, 16:04

AddisMap_Alexander's gravatar image

accept rate: 0%

This may be no complete answer - but hopefully still good help: You could search the web for tiles retina - it is quite a similar (same) problem for high-resolution displays (popular through Apple's high-resolution displays, named "retina"). is a good example of high-res tiles. A search for high-res tiles openstreetmap is also promising. ;-)

Also see our wiki entry on printing. If you want to print OSM for personal use - did you try the pdf version of the export tab on our main map page?

permanent link

answered 15 Dec '12, 17:00

aseerel4c26's gravatar image

aseerel4c26 ♦
accept rate: 18%

edited 20 Nov '14, 13:32

Explain "strange results" - I use the --scale-factor parameter on nik2img and I believe that should do the same as TileMill's scale parameter. Of course you have to adjust the output size accordingly; if you specify --scale-factor 4 and want the same detail then you need to quadruple your width and height as well.

permanent link

answered 15 Dec '12, 19:02

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%


Actually it looks like this strange results only happen in the tile view in TileMill. When I export it is actually all fine, as long as I zoom in more according to the current scale.

(16 Dec '12, 14:04) AddisMap_Ale...

Recently found: Nik4 ... there you can choose ppi or dpi value, I think.

permanent link

answered 20 Nov '14, 19:37

stephan75's gravatar image

accept rate: 6%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 15 Dec '12, 16:04

question was seen: 9,336 times

last updated: 20 Nov '14, 19:37

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum