|
|
@@ -234,37 +234,37 @@ class DetailPicGet(DetailBase):
|
|
|
def deal_pic_5(self):
|
|
|
detailed_images = []
|
|
|
pp_bg = PictureProcessing(r"{}\6.jpg".format(self.root))
|
|
|
- circle = PictureProcessing(r"{}\circle.png".format(self.root))
|
|
|
- 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_png_1 = pp_png_1.crop(mode="min")
|
|
|
- pp_png_1 = pp_png_1.resize(value=pp_bg.width - 50)
|
|
|
- desc_title_text_bg = PictureProcessing(
|
|
|
- "RGBA", (pp_bg.width, pp_png_1.height + 150), (255, 255, 255, 0)
|
|
|
- )
|
|
|
- desc_title_text_bg = desc_title_text_bg.paste_img(
|
|
|
- mode="pixel",
|
|
|
- top_img=pp_png_1,
|
|
|
- base="cc",
|
|
|
- value=(0, 0),
|
|
|
- )
|
|
|
- desc_title_text_bg = desc_title_text_bg.rotate(doge=115)
|
|
|
- pp_bg.paste_img(
|
|
|
- mode="pixel",
|
|
|
- top_img=desc_title_text_bg,
|
|
|
- base="cs",
|
|
|
- value=(0, 90),
|
|
|
- )
|
|
|
- pp_bg.paste_img(
|
|
|
- mode="pixel",
|
|
|
- top_img=circle,
|
|
|
- base="en",
|
|
|
- value=(30, 380),
|
|
|
- )
|
|
|
+ # circle = PictureProcessing(r"{}\circle.png".format(self.root))
|
|
|
+ # 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_png_1 = pp_png_1.crop(mode="min")
|
|
|
+ # pp_png_1 = pp_png_1.resize(value=pp_bg.width - 50)
|
|
|
+ # desc_title_text_bg = PictureProcessing(
|
|
|
+ # "RGBA", (pp_bg.width, pp_png_1.height + 150), (255, 255, 255, 0)
|
|
|
+ # )
|
|
|
+ # desc_title_text_bg = desc_title_text_bg.paste_img(
|
|
|
+ # mode="pixel",
|
|
|
+ # top_img=pp_png_1,
|
|
|
+ # base="cc",
|
|
|
+ # value=(0, 0),
|
|
|
+ # )
|
|
|
+ # desc_title_text_bg = desc_title_text_bg.rotate(doge=115)
|
|
|
+ # pp_bg.paste_img(
|
|
|
+ # mode="pixel",
|
|
|
+ # top_img=desc_title_text_bg,
|
|
|
+ # base="cs",
|
|
|
+ # value=(0, 90),
|
|
|
+ # )
|
|
|
+ # pp_bg.paste_img(
|
|
|
+ # mode="pixel",
|
|
|
+ # top_img=circle,
|
|
|
+ # base="en",
|
|
|
+ # value=(30, 380),
|
|
|
+ # )
|
|
|
detailed_images.append(pp_bg)
|
|
|
return PictureProcessing(im=self.add_pic(detailed_images))
|
|
|
|