optimized empty png image in SVGImage

This commit is contained in:
Laura Klünder 2017-10-29 14:24:45 +01:00
parent 4ad4083456
commit 55f0f481fe
2 changed files with 17 additions and 13 deletions

View file

@ -61,7 +61,8 @@ class SVGRenderer:
return self.update_cache_key + ':' + self.access_cache_key
def render(self):
svg = SVGImage(bounds=((self.minx, self.miny), (self.maxx, self.maxy)), scale=self.scale, buffer=1)
svg = SVGImage(bounds=((self.minx, self.miny), (self.maxx, self.maxy)),
scale=self.scale, buffer=1, background_color='#DCDCDC')
# add no access restriction to “unlocked“ access restrictions so lookup gets easier
unlocked_access_restrictions = self.unlocked_access_restrictions | set([None])