[FIX]:AccessInit: hash collision error possible
lp bug: https://launchpad.net/bugs/859123 fixed bzr revid: nch@tinyerp.com-20111114065105-ho6id5qnsndd5ks9
This commit is contained in:
parent
99a3ab1c43
commit
f373597f33
|
@ -27,7 +27,7 @@ def convert(from_file, to_file):
|
|||
__convert(from_file, to_file, size=95)
|
||||
|
||||
def __convert(from_file, to_file, size=95):
|
||||
import Image, ImageDraw, ImageFilter
|
||||
from PIL import Image, ImageDraw, ImageFilter
|
||||
im = Image.open(from_file)
|
||||
if float(im.size[1]/im.size[0])>2:
|
||||
im = im.resize((im.size[0]*size/im.size[1], size))
|
||||
|
|
Loading…
Reference in New Issue