fix 图片读取错误
This commit is contained in:
1 parent
da7f4bfc5e
commit
ef34c46bfa
2 files changed
+6
-5
No files matched your search
+2
-1
@@ -374,7 +374,8 @@ def get_img(img_path):
|
||||
img_tmp_path = os.path.join(g.tmp_path, my_wxid, "img")
|
||||
original_img_path = os.path.join(wx_path, img_path)
|
||||
if os.path.exists(original_img_path):
|
||||
fomt, md5, out_bytes = dat2img(original_img_path)
|
||||
rc, fomt, md5, out_bytes = dat2img(original_img_path)
|
||||
|
||||
imgsavepath = os.path.join(img_tmp_path, img_path + "_" + ".".join([md5, fomt]))
|
||||
if not os.path.exists(os.path.dirname(imgsavepath)):
|
||||
os.makedirs(os.path.dirname(imgsavepath))
|
||||
|
||||
Reference in new issue
Block a user