Esempio n. 1
0
 def _watermark_filter(tile):
     placement = tile_watermark_placement(tile.coord, spacing == 'wide')
     wimg = WatermarkImage(text, image_opts=tile.source.image_opts,
         placement=placement, opacity=opacity, font_size=font_size,
         font_color=font_color)
     tile.source = wimg.draw(img=tile.source, in_place=False)
     return tile
Esempio n. 2
0
 def _watermark_filter(tile):
     if tile.coord[0] % 4 != 0 or tile.coord[1] % 4 != 0:
         return tile
     wimg = WatermarkImage(text, image_opts=tile.source.image_opts,
         placement='c', opacity=100, font_size=11,
         font_color=(200, 200, 200))
     tile.source = wimg.draw(img=tile.source, in_place=False)
     return tile
Esempio n. 3
0
 def _watermark_filter(tile):
     if tile.coord[0] % 4 != 0 or tile.coord[1] % 4 != 0:
         return tile
     wimg = WatermarkImage(text,
                           image_opts=tile.source.image_opts,
                           placement='c',
                           opacity=100,
                           font_size=11,
                           font_color=(200, 200, 200))
     tile.source = wimg.draw(img=tile.source, in_place=False)
     return tile