Skip to content

32-bit instead of 8-bit PNG output #64

Closed
@der-stefan

Description

@der-stefan

Rendering meta tiles with mod_tile/renderd always made my hillshade look ugly. This results in the 8 bit PNGs, which Mapnik doesn't rasterize nicely. The difference can be seen here:
8-bit: png256
32-bit: png

Only two lines have to be changed in src/gen_tile.c:
Substitute both "png256" with "png"

There are two possible ways:

  • Introduce option in user config file (/usr/local/etc/renderd.conf) for bit depth
  • Improve Mapnik. Imagemagick can produce nice looking 8-bit PNGs for example by "convert -type Palette -quality 90 [...]"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions