artemp/mapnik — Issue #671: Adding watermark just using Python
Author: artemp
Created: 2011-10-11 16:31:41+00:00
State: open
Labels: Agg_Renderer

Hello friends,

Is there an easy way of adding watermark png256 image on the 256x256 sized tiles (png256 format) _after_ initial rendering (without 3-rd party tools), just using Python (generate_tiles.py)?

Example:
{{{
mapnik.render(self.m, im)

if not self.is_blank(im):
im.watermark(im, watermark_im)
im.save(tile_uri, 'png256')
}}}
Watermark example image is attached.

Thank you.