|
@@ -119,28 +119,29 @@ class DetailPicGet(DetailBase):
|
|
|
pp_bg = PictureProcessing(r"{}\6.jpg".format(self.root), 1600)
|
|
pp_bg = PictureProcessing(r"{}\6.jpg".format(self.root), 1600)
|
|
|
pp_bg_1 = PictureProcessing(r"{}\7.jpg".format(self.root), 1600)
|
|
pp_bg_1 = PictureProcessing(r"{}\7.jpg".format(self.root), 1600)
|
|
|
pp_bg_2 = PictureProcessing(r"{}\8.jpg".format(self.root), 1600)
|
|
pp_bg_2 = PictureProcessing(r"{}\8.jpg".format(self.root), 1600)
|
|
|
- pp_bg_special_bg = PictureProcessing(r"{}\special_bg.png".format(self.root), 1600)
|
|
|
|
|
- pp_bg_special_text = PictureProcessing(r"{}\special_bottom.png".format(self.root), 1600)
|
|
|
|
|
- goods_art_no_list = list(self.data.keys())
|
|
|
|
|
- _, pp_png_1 = self.image_one_pic(
|
|
|
|
|
- return_orign=True,
|
|
|
|
|
- goods_art_no=goods_art_no_list[0],
|
|
|
|
|
- name="鞋底",
|
|
|
|
|
- )
|
|
|
|
|
- pp_bg5 = PictureProcessing(
|
|
|
|
|
- "RGB", (pp_bg.width,pp_bg_special_bg.height), (255, 255, 255, 255)
|
|
|
|
|
- )
|
|
|
|
|
- pp_bg5 = pp_bg5.paste_img(top_img=pp_bg_special_bg, base="cc", value=(0, 0))
|
|
|
|
|
- product_past_canvas = PictureProcessing(
|
|
|
|
|
- "RGBA", (pp_bg.width, pp_png_1.height/2), (255, 255, 255, 0)
|
|
|
|
|
- )
|
|
|
|
|
- # pp_jpg_1 = pp_jpg_1.resize(value=pp_bg.width)
|
|
|
|
|
- pp_png_1 = pp_png_1.crop(mode="min")
|
|
|
|
|
- pp_png_1 = pp_png_1.resize(value=pp_bg.width/2)
|
|
|
|
|
- product_past_canvas = product_past_canvas.paste_img(top_img=pp_png_1, base="nc", value=(0, -100))
|
|
|
|
|
- # product_past_canvas = product_past_canvas.rotate(doge=-100)
|
|
|
|
|
- pp_bg5 = pp_bg5.paste_img(top_img=product_past_canvas, base="nc", value=(0, 0))
|
|
|
|
|
- pp_bg5 = pp_bg5.paste_img(top_img=pp_bg_special_text, base="cs", value=(0, 0))
|
|
|
|
|
|
|
+ pp_bg5 = PictureProcessing(r"{}\9.jpg".format(self.root), 1600)
|
|
|
|
|
+ # pp_bg_special_bg = PictureProcessing(r"{}\special_bg.png".format(self.root), 1600)
|
|
|
|
|
+ # pp_bg_special_text = PictureProcessing(r"{}\special_bottom.png".format(self.root), 1600)
|
|
|
|
|
+ # goods_art_no_list = list(self.data.keys())
|
|
|
|
|
+ # _, pp_png_1 = self.image_one_pic(
|
|
|
|
|
+ # return_orign=True,
|
|
|
|
|
+ # goods_art_no=goods_art_no_list[0],
|
|
|
|
|
+ # name="鞋底",
|
|
|
|
|
+ # )
|
|
|
|
|
+ # pp_bg5 = PictureProcessing(
|
|
|
|
|
+ # "RGB", (pp_bg.width,pp_bg_special_bg.height), (255, 255, 255, 255)
|
|
|
|
|
+ # )
|
|
|
|
|
+ # pp_bg5 = pp_bg5.paste_img(top_img=pp_bg_special_bg, base="cc", value=(0, 0))
|
|
|
|
|
+ # product_past_canvas = PictureProcessing(
|
|
|
|
|
+ # "RGBA", (pp_bg.width, pp_png_1.height/2), (255, 255, 255, 0)
|
|
|
|
|
+ # )
|
|
|
|
|
+ # # pp_jpg_1 = pp_jpg_1.resize(value=pp_bg.width)
|
|
|
|
|
+ # pp_png_1 = pp_png_1.crop(mode="min")
|
|
|
|
|
+ # pp_png_1 = pp_png_1.resize(value=pp_bg.width/2)
|
|
|
|
|
+ # product_past_canvas = product_past_canvas.paste_img(top_img=pp_png_1, base="nc", value=(0, -100))
|
|
|
|
|
+ # # product_past_canvas = product_past_canvas.rotate(doge=-100)
|
|
|
|
|
+ # pp_bg5 = pp_bg5.paste_img(top_img=product_past_canvas, base="nc", value=(0, 0))
|
|
|
|
|
+ # pp_bg5 = pp_bg5.paste_img(top_img=pp_bg_special_text, base="cs", value=(0, 0))
|
|
|
detailed_images.append(pp_bg)
|
|
detailed_images.append(pp_bg)
|
|
|
detailed_images.append(pp_bg_1)
|
|
detailed_images.append(pp_bg_1)
|
|
|
detailed_images.append(pp_bg_2)
|
|
detailed_images.append(pp_bg_2)
|