Spaces:
Runtime error
Runtime error
Niv Sardi
commited on
Commit
·
1778651
1
Parent(s):
a271ced
python/imtool: crop, be less verbose
Browse files- python/imtool.py +1 -1
python/imtool.py
CHANGED
@@ -157,7 +157,7 @@ def mix_alpha(a, b, ba, fx, fy):
|
|
157 |
if (aw*p < bw or ah*p < bh):
|
158 |
f = min(p*aw/bw, p*ah/bh)
|
159 |
nw, nh = floor_point(bw*f, bh*f)
|
160 |
-
print(f'resizing to fit in {aw}x{ah}\t {bw}x{bh}\t=> {nw}x{nh}\tfactor {f}')
|
161 |
r = cv2.resize(b, (nw, nh), interpolation = cv2.INTER_LINEAR)
|
162 |
rba = cv2.resize(ba, (nw, nh), interpolation = cv2.INTER_LINEAR)
|
163 |
|
|
|
157 |
if (aw*p < bw or ah*p < bh):
|
158 |
f = min(p*aw/bw, p*ah/bh)
|
159 |
nw, nh = floor_point(bw*f, bh*f)
|
160 |
+
# print(f'resizing to fit in {aw}x{ah}\t {bw}x{bh}\t=> {nw}x{nh}\tfactor {f}')
|
161 |
r = cv2.resize(b, (nw, nh), interpolation = cv2.INTER_LINEAR)
|
162 |
rba = cv2.resize(ba, (nw, nh), interpolation = cv2.INTER_LINEAR)
|
163 |
|