From 4bd9541a32416fea3715e9f904cb19319524e575 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Mon, 25 Mar 2019 10:00:19 -0400 Subject: [PATCH] scaling ratio can now be float --- bin/video2x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/video2x.py b/bin/video2x.py index 2d37a06..96d1e1e 100644 --- a/bin/video2x.py +++ b/bin/video2x.py @@ -85,7 +85,7 @@ def process_arguments(): scaling_options = parser.add_argument_group('Scaling Options') scaling_options.add_argument('--width', help='Output video width', action='store', type=int, default=False) scaling_options.add_argument('--height', help='Output video height', action='store', type=int, default=False) - scaling_options.add_argument('-r', '--ratio', help='Scaling ratio', action='store', type=int, default=False) + scaling_options.add_argument('-r', '--ratio', help='Scaling ratio', action='store', type=float, default=False) # parse arguments return parser.parse_args()