Edward,

I think the easiest method would be to create a PNG with alpha at the same size 
as your tiles, then in python use mapnik's Image.blend() function to combine 
the two images.

Here is an example: 
http://mapnik-utils.googlecode.com/svn/example_code/watermark/

Dane

On Apr 26, 2011, at 7:39 AM, Edward Sargisson wrote:

> Hi all,
> I'd like to add copyright information into the lower left corner of the 
> resulting image - regardless of which part of the Earth the map is showing. 
> This is mostly to show the OpenStreetMap acknowledgement.
> 
> Does anybody have an easy method to do this with Mapnik?
> As part of the code I already know what the bounding box is so I could do 
> some maths on that in order to transform it into WGS84.
> The resulting image can only be 90 x 90 pixels for everything. Does anybody 
> have any experience with the font settings to use to have text be visible in 
> such a small number of pixels?
> If it's easier to do something with the PNG then I'm running this in Python.
> 
> Many thanks in advance,
> Edward
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to