pattern scaling

This commit is contained in:
Komzpa 2011-08-25 18:45:59 +03:00
parent 6ad9a34230
commit 4c20d88f7a

View file

@ -383,7 +383,7 @@ if options.renderer == "mapnik":
im = im.rotate(relaxedFloat(entry["style"]["pattern-rotate"]))
fname = "r"+str(relaxedFloat(entry["style"]["pattern-rotate"]))+fname
if "pattern-scale" in entry["style"]:
sc = relaxedFloat(entry["style"]["pattern-rotate"])*1.
sc = relaxedFloat(entry["style"]["pattern-scale"])*1.
ns = (max(int(round(im.size[0]*sc)),1), max(int(round(im.size[1]*sc)),1))
im = im.resize(ns, Image.BILINEAR)
fname = "z"+str(sc)+fname