Omnibus commited on
Commit
b0295c2
·
1 Parent(s): 4cad471

Update stegan.py

Browse files
Files changed (1) hide show
  1. stegan.py +1 -1
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 imgw > data_pad or imgh > data_pad:
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)