ref: 89a32fa2357bbd6ce57965712cc620b9f0db475e
parent: c59921f4e6076fff98a1841c44dd0bad8ed5e1e2
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Sep 3 15:19:36 EDT 2020
fix -x50% use case (ie no -y is specified and -x is percentage)
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# img
+# imgtools
Some random image-related tools.
--- a/resample.c
+++ b/resample.c
@@ -54,6 +54,14 @@
usage();
}ARGEND
+ if(wp && oh == 0){
+ oh = ow;
+ hp = 1;
+ }else if(hp && ow == 0){
+ ow = oh;
+ wp = 1;
+ }
+
if(ow < 1 && oh < 1)
usage();
for(f = 0; f < nelem(filters) && (filters[f] == nil || strcmp(flts, filters[f]) != 0); f++);