|
|
@@ -244,27 +244,33 @@ class DetailPicGet(DetailBase):
|
|
|
return bg_img
|
|
|
def deal_pic_6(self):
|
|
|
if self.get_text_value("模特图"):
|
|
|
- hh_img = PictureProcessing(r"{}\6.jpg".format(self.root))
|
|
|
- mote_img = PictureProcessing(self.get_text_value("模特图"))
|
|
|
- mote_img = mote_img.resize(value=896)
|
|
|
- bg_img = PictureProcessing("RGB", (hh_img.width, hh_img.height+mote_img.height+90), (252,238,225))
|
|
|
- bg_img = bg_img.paste_img(top_img=hh_img,base="nc", value=(0, 0))
|
|
|
- bg_img = bg_img.paste_img(top_img=mote_img,base="nc", value=(0, hh_img.height))
|
|
|
- return bg_img
|
|
|
+ try:
|
|
|
+ hh_img = PictureProcessing(r"{}\6.jpg".format(self.root))
|
|
|
+ mote_img = PictureProcessing(self.get_text_value("模特图"))
|
|
|
+ mote_img = mote_img.resize(value=896)
|
|
|
+ bg_img = PictureProcessing("RGB", (hh_img.width, hh_img.height+mote_img.height+90), (252,238,225))
|
|
|
+ bg_img = bg_img.paste_img(top_img=hh_img,base="nc", value=(0, 0))
|
|
|
+ bg_img = bg_img.paste_img(top_img=mote_img,base="nc", value=(0, hh_img.height))
|
|
|
+ return bg_img
|
|
|
+ except:
|
|
|
+ return
|
|
|
else:
|
|
|
return
|
|
|
|
|
|
def deal_pic_7(self):
|
|
|
if self.get_text_value("场景图"):
|
|
|
- hh_img = PictureProcessing(r"{}\7-1.jpg".format(self.root))
|
|
|
- mote_img = PictureProcessing(self.get_text_value("场景图"))
|
|
|
- mote_img = mote_img.resize(value=896)
|
|
|
- ff_img = PictureProcessing(r"{}\7-2.jpg".format(self.root))
|
|
|
- bg_img = PictureProcessing("RGB", (hh_img.width, hh_img.height+mote_img.height+ff_img.height), (252,238,225))
|
|
|
- bg_img = bg_img.paste_img(top_img=hh_img,base="nc", value=(0, 0))
|
|
|
- bg_img = bg_img.paste_img(top_img=mote_img,base="nc", value=(0, hh_img.height))
|
|
|
- bg_img = bg_img.paste_img(top_img=ff_img,base="nc", value=(0, hh_img.height+mote_img.height))
|
|
|
- return bg_img
|
|
|
+ try:
|
|
|
+ hh_img = PictureProcessing(r"{}\7-1.jpg".format(self.root))
|
|
|
+ mote_img = PictureProcessing(self.get_text_value("场景图"))
|
|
|
+ mote_img = mote_img.resize(value=896)
|
|
|
+ ff_img = PictureProcessing(r"{}\7-2.jpg".format(self.root))
|
|
|
+ bg_img = PictureProcessing("RGB", (hh_img.width, hh_img.height+mote_img.height+ff_img.height), (252,238,225))
|
|
|
+ bg_img = bg_img.paste_img(top_img=hh_img,base="nc", value=(0, 0))
|
|
|
+ bg_img = bg_img.paste_img(top_img=mote_img,base="nc", value=(0, hh_img.height))
|
|
|
+ bg_img = bg_img.paste_img(top_img=ff_img,base="nc", value=(0, hh_img.height+mote_img.height))
|
|
|
+ return bg_img
|
|
|
+ except:
|
|
|
+ return
|
|
|
else:
|
|
|
return
|
|
|
def deal_pic_8(self):
|