mpo bug
This commit is contained in:
parent
25705297f5
commit
4a76d76707
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue