diff options
Diffstat (limited to 'sci-geosciences/tilecache/files/tilecache-2.11-pil.patch')
-rw-r--r-- | sci-geosciences/tilecache/files/tilecache-2.11-pil.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sci-geosciences/tilecache/files/tilecache-2.11-pil.patch b/sci-geosciences/tilecache/files/tilecache-2.11-pil.patch new file mode 100644 index 000000000000..b596ae449ff7 --- /dev/null +++ b/sci-geosciences/tilecache/files/tilecache-2.11-pil.patch @@ -0,0 +1,21 @@ +diff -Nuar tilecache-2.11.orig/TileCache/Layer.py tilecache-2.11/TileCache/Layer.py +--- tilecache-2.11.orig/TileCache/Layer.py 2010-10-15 04:00:18.000000000 -0700 ++++ tilecache-2.11/TileCache/Layer.py 2013-11-09 11:05:17.620475332 -0800 +@@ -391,7 +391,7 @@ + return MetaTile(self, x, y, tile.z) + + def renderMetaTile (self, metatile, tile): +- import StringIO, Image ++ import StringIO, PIL.Image as Image + + data = self.renderTile(metatile) + image = Image.open( StringIO.StringIO(data) ) +@@ -444,7 +444,7 @@ + return self.renderTile(tile) + + def watermark (self, img): +- import StringIO, Image, ImageEnhance ++ import StringIO, PIL.Image as Image, PIL.ImageEnhance as ImageEnhance + tileImage = Image.open( StringIO.StringIO(img) ) + wmark = Image.open(self.watermarkimage) + assert self.watermarkopacity >= 0 and self.watermarkopacity <= 1 |