|
@@ -38,6 +38,8 @@ def get_parser():
|
|
|
"Value > 1 - upscale, Value < 1 - downscale. Should be used "
|
|
"Value > 1 - upscale, Value < 1 - downscale. Should be used "
|
|
|
"with --resize", type=float, default=1.0
|
|
"with --resize", type=float, default=1.0
|
|
|
)
|
|
)
|
|
|
|
|
+ parser.add_argument(
|
|
|
|
|
+ "--trim_threshold", help="Alpha trim threshold. Used to optimize image when trimming transparent borders of image", type=int, default=2)
|
|
|
parser.add_argument("-r", "--resize", help="Resize images by a scale value",
|
|
parser.add_argument("-r", "--resize", help="Resize images by a scale value",
|
|
|
action="store_true", default=False)
|
|
action="store_true", default=False)
|
|
|
parser.add_argument("-us", "--upscale",
|
|
parser.add_argument("-us", "--upscale",
|
|
@@ -57,6 +59,8 @@ def get_parser():
|
|
|
action="store_true", default=False)
|
|
action="store_true", default=False)
|
|
|
parser.add_argument("-w", "--warnings", help="show warnings",
|
|
parser.add_argument("-w", "--warnings", help="show warnings",
|
|
|
action="store_true", default=False)
|
|
action="store_true", default=False)
|
|
|
|
|
+ parser.add_argument("--simple_downsample", help="don't use smart algorithm when resizing args",
|
|
|
|
|
+ action="store_true", default=False)
|
|
|
parser.add_argument(
|
|
parser.add_argument(
|
|
|
"-v", "--verbosity", help="verbosity level. 1 - only errors, "
|
|
"-v", "--verbosity", help="verbosity level. 1 - only errors, "
|
|
|
"2 - normal. Default value is 2", type=int, default=2)
|
|
"2 - normal. Default value is 2", type=int, default=2)
|