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