Commit ccf55d9f authored by Jorge S. Mendes de Jesus's avatar Jorge S. Mendes de Jesus
Browse files

-resize {per_value}%! (force resize)

parent d3a5c206
...@@ -66,10 +66,10 @@ def main(make_path, in_path, out_path): ...@@ -66,10 +66,10 @@ def main(make_path, in_path, out_path):
#Got problems with #Got problems with
if "per" in folder: if "per" in folder:
per_value = folder.split("per")[0] per_value = folder.split("per")[0]
command = f"convert -delete 1--1 {image} -resize {per_value}% {out_file_name}" command = f"convert -delete 1--1 {image} -resize {per_value}%! {out_file_name}"
if "_" in folder: if "_" in folder:
res_size=folder.replace("_","x") res_size=folder.replace("_","x")
command = f"convert -delete 1--1 {image} -resize {res_size} {out_file_name}" command = f"convert -delete 1--1 {image} -resize {res_size}! {out_file_name}"
if "original" in folder: if "original" in folder:
command = f"convert -delete 1--1 {image} {out_file_name}" command = f"convert -delete 1--1 {image} {out_file_name}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment