|
|
@@ -208,9 +208,13 @@ class DetailBase(object):
|
|
|
out_put_dir=self.out_put_dir
|
|
|
)
|
|
|
for pic_data in self.goods_no_value["货号资料"]:
|
|
|
- scene_image = pic_data["场景图"]
|
|
|
- model_image = pic_data["模特图"]
|
|
|
- goods_art_no = pic_data["货号"]
|
|
|
+ print("正在复制 pic_data",pic_data)
|
|
|
+ scene_image = pic_data.get("场景图",None)
|
|
|
+ model_image = pic_data.get("模特图",None)
|
|
|
+ goods_art_no = pic_data.get("货号",None)
|
|
|
+ print("正在复制 scene_image",scene_image)
|
|
|
+ print("正在复制 model_image",model_image)
|
|
|
+ print("正在复制===================================>")
|
|
|
# {out_put_dir}/{goods_number}
|
|
|
# 资料长度,决定是否添加货号后缀
|
|
|
goods_art_lens = len(self.goods_no_value["货号资料"])
|
|
|
@@ -234,6 +238,7 @@ class DetailBase(object):
|
|
|
"RGB", (mote_img.width, mote_img.height), bg_color
|
|
|
)
|
|
|
bg_img = bg_img.paste_img(top_img=mote_img, base="nc", value=(0, 0))
|
|
|
+ print("拼接模特图场景图====>",image_path)
|
|
|
return bg_img
|
|
|
except Exception as e:
|
|
|
logger.info(f"copyImage 拼接模特图/场景图出错:{str(e)}")
|