Change image resolution in mapfile
woodbri at SWOODBRIDGE.COM
Wed Jan 25 16:22:23 EST 2006
Well, we are getting requests for large format printed maps being able
to generate images that will support these efforts is important. Right
now is is extremely hard to do this. My mapfiles have 150 layers and you
have to make a custom mapfile for each resolution you want to support
and change the thickness of all line widths, font sizes, symbol sizes,
etc, etc. Fonts are a particularly difficult problem because you need to
render them fatter also with increased DPI.
It would be nice if there were also output controls supported in
mapserver that would allow you to specify the DPI and have it
automatically make the correct adjustments to the drawing code.
Pericles S. Nacionales wrote:
> The 72, 96, or 300 dpi numbers have no real meaning in digital
> images--what matters is the dimensions of the image itself. The dpi
> stuff matters when sending the image to an output (display or hardcopy
> prints). Think of it this way, a 24000x24000-pixel image will come out
> to be 333.33x333.33 inches in 72dpi display (printout, whatever),
> 250x250 inches at 96dpi, and 80x80 inches at 300dpi. Follow the pattern?
> You can set your image size parameters (the target DPI, target output
> size, or the pixel dimensions) in PhotoShop, the Gimp (with gimp-print),
> any decent image manipulation software, or in the printer settings.
> Here's a little more info for you, from the world of digital
> photography: http://www.normankoren.com/pixels_images.html#Imageres
> krishna S wrote:
>> I want an exactly 300 dpi map, so do you mean to set the mapsize to
>> 24000X24000 pixels ....
>> Thanks for your reply ..
More information about the mapserver-users