multi scale

This commit is contained in:
IrisRainbowNeko 2025-02-08 10:56:50 +08:00
parent 46a7db90e0
commit b49e61aea5

View file

@ -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: