mirror of
https://github.com/dnet/pySSTV.git
synced 2026-03-10 23:14:05 +01:00
update
This commit is contained in:
parent
d92cbd94e0
commit
76f03da2ff
|
|
@ -67,9 +67,9 @@ def main():
|
||||||
if args.keep_aspect:
|
if args.keep_aspect:
|
||||||
newbg = Image.new('RGB', (mode.WIDTH, mode.HEIGHT))
|
newbg = Image.new('RGB', (mode.WIDTH, mode.HEIGHT))
|
||||||
if t:
|
if t:
|
||||||
newbg.paste(image, (0, (mode.HEIGHT/2)-(h/2)))
|
newbg.paste(image, (0, int((mode.HEIGHT/2)-(h/2))))
|
||||||
else:
|
else:
|
||||||
newbg.paste(image, ((mode.WIDTH/2)-(w/2), 0))
|
newbg.paste(image, (int((mode.WIDTH/2)-(w/2)), 0))
|
||||||
image = newbg.copy()
|
image = newbg.copy()
|
||||||
if crop:
|
if crop:
|
||||||
x = (image.width - mode.WIDTH) / 2
|
x = (image.width - mode.WIDTH) / 2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue