Spaces:
Runtime error
Runtime error
Update stegan.py
Browse files
stegan.py
CHANGED
@@ -95,7 +95,7 @@ def conv_im(im,data):
|
|
95 |
imgh = img1.size[1]
|
96 |
print (f'qr Size:{img1.size}')
|
97 |
#img1.thumbnail((imgw*4,imgh*4), Image.Resampling.LANCZOS)
|
98 |
-
if
|
99 |
|
100 |
img1 = img1.resize((int(data_pad),int(data_pad)), Image.Resampling.LANCZOS)
|
101 |
print (img1.size)
|
|
|
95 |
imgh = img1.size[1]
|
96 |
print (f'qr Size:{img1.size}')
|
97 |
#img1.thumbnail((imgw*4,imgh*4), Image.Resampling.LANCZOS)
|
98 |
+
if data_pad > imgw or data_pad > imgh :
|
99 |
|
100 |
img1 = img1.resize((int(data_pad),int(data_pad)), Image.Resampling.LANCZOS)
|
101 |
print (img1.size)
|