mpo bug
This commit is contained in:
parent
25705297f5
commit
4a76d76707
|
@ -307,7 +307,7 @@ def exportxlsx(a,objs):
|
||||||
if v['yhtp']:
|
if v['yhtp']:
|
||||||
try:
|
try:
|
||||||
img = Image(dirname + v['yhtp'][0])
|
img = Image(dirname + v['yhtp'][0])
|
||||||
if str(img.format)!='MPO':
|
if img.format!='mpo':
|
||||||
img.width, img.height = (90, 90) #这两个属性分别是对应添加图片的宽高
|
img.width, img.height = (90, 90) #这两个属性分别是对应添加图片的宽高
|
||||||
sheet.add_image(img, 'u'+str(i+4))
|
sheet.add_image(img, 'u'+str(i+4))
|
||||||
except:
|
except:
|
||||||
|
@ -315,7 +315,7 @@ def exportxlsx(a,objs):
|
||||||
if v['zghtp']:
|
if v['zghtp']:
|
||||||
try:
|
try:
|
||||||
img = Image(dirname + v['zghtp'][0])
|
img = Image(dirname + v['zghtp'][0])
|
||||||
if str(img.format)!='MPO':
|
if img.format!='mpo':
|
||||||
img.width, img.height = (90, 90) #这两个属性分别是对应添加图片的宽高
|
img.width, img.height = (90, 90) #这两个属性分别是对应添加图片的宽高
|
||||||
sheet.add_image(img, 'w'+str(i+4))
|
sheet.add_image(img, 'w'+str(i+4))
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue