Fixed icns tools and changed icon.
This commit is contained in:
parent
a3e10b1630
commit
6176181cda
8 changed files with 249 additions and 284 deletions
|
|
@ -9,9 +9,9 @@ try:
|
|||
image.thumbnail(size, im.ANTIALIAS)
|
||||
offset = [0,0]
|
||||
if image.size[0] >= image.size[1]:
|
||||
offset[1] = back.size[1]/2-image.size[1]/2
|
||||
offset[1] = int(back.size[1]/2-image.size[1]/2)
|
||||
else:
|
||||
offset[0] = back.size[0]/2-image.size[0]/2
|
||||
offset[0] = int(back.size[0]/2-image.size[0]/2)
|
||||
back.paste(image, tuple(offset))
|
||||
back.save(output, image.format)
|
||||
contents = output.getvalue()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue