This commit is contained in:
caoqianming 2020-08-04 22:20:30 +08:00
parent 25705297f5
commit 4a76d76707
1 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,7 @@ def exportxlsx(a,objs):
if v['yhtp']:
try:
img = Image(dirname + v['yhtp'][0])
if str(img.format)!='MPO':
if img.format!='mpo':
img.width, img.height = (90, 90) #这两个属性分别是对应添加图片的宽高
sheet.add_image(img, 'u'+str(i+4))
except:
@ -315,7 +315,7 @@ def exportxlsx(a,objs):
if v['zghtp']:
try:
img = Image(dirname + v['zghtp'][0])
if str(img.format)!='MPO':
if img.format!='mpo':
img.width, img.height = (90, 90) #这两个属性分别是对应添加图片的宽高
sheet.add_image(img, 'w'+str(i+4))
except: