artemp/trac2github — Issue #672: Adding watermark just using Python
Author: artemp
Created: 2011-10-09 20:46:26+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.