mirror of
https://github.com/quantum5/win2xcur.git
synced 2025-04-24 10:11:57 -04:00
multi scale
This commit is contained in:
parent
46a7db90e0
commit
b49e61aea5
|
@ -35,7 +35,11 @@ def main() -> None:
|
|||
traceback.print_exc()
|
||||
else:
|
||||
if args.scale:
|
||||
scale.apply_to_frames(cursor.frames, scale=args.scale)
|
||||
scales = eval(args.scale)
|
||||
if isinstance(scales, (int, float)):
|
||||
scale.apply_to_frames(cursor.frames, scale=scales)
|
||||
else:
|
||||
cursor.frames = scale.apply_to_frames_MS(cursor.frames, scales=scales)
|
||||
ext, result = to_smart(cursor.frames)
|
||||
output = os.path.join(args.output, os.path.basename(name) + ext)
|
||||
with open(output, 'wb') as f:
|
||||
|
|
Loading…
Reference in a new issue