Selaa lähdekoodia

信诺2去水滴 加字数限制

swortect 5 kuukautta sitten
vanhempi
commit
b562883bdd

+ 7 - 7
python/custom_plugins/plugins/detail_template/xinnuo/detail_xinnuo2.py

@@ -286,6 +286,7 @@ class DetailPicGet(DetailBase):
             fill=(69, 40, 34),
             return_mode="image",
             margins=(0, 0, 0, 0),
+            max_len_one_line=6
         )
         pp_bg.get_text_image_advanced(
             value=(555, 490),
@@ -297,6 +298,7 @@ class DetailPicGet(DetailBase):
             fill=(69, 40, 34),
             return_mode="image",
             margins=(0, 0, 0, 0),
+            max_len_one_line=6
         )
         pp_bg.get_text_image_advanced(
             value=(246, 600),
@@ -308,6 +310,7 @@ class DetailPicGet(DetailBase):
             fill=(69, 40, 34),
             return_mode="image",
             margins=(0, 0, 0, 0),
+            max_len_one_line=6
         )
         pp_bg.get_text_image_advanced(
             value=(246, 490),
@@ -319,6 +322,7 @@ class DetailPicGet(DetailBase):
             fill=(69, 40, 34),
             return_mode="image",
             margins=(0, 0, 0, 0),
+            max_len_one_line=6
         )
         pp_bg.get_text_image_advanced(
             value=(555, 600),
@@ -473,9 +477,9 @@ class DetailPicGet(DetailBase):
         pp_jpg_1 = pp_jpg_1.resize(value=pp_bg.width*1.5)
         pp_png_1 = pp_png_1.resize(value=pp_bg.width*1.5)
         # pp_bg = pp_bg.paste_img(top_img=shoe_bg, value=(0, 0), base="nw")
-        water = PictureProcessing(r"{}\6water2.png".format(self.root))
-
-        pp_png_1.paste_img(top_img=water, base="cc", value=(0, 0))
+        # water = PictureProcessing(r"{}\6water2.png".format(self.root))
+        #
+        # pp_png_1.paste_img(top_img=water, base="cc", value=(0, 0))
 
         pp_bg = pp_bg.to_overlay_pic_advance(
             mode="pixel",
@@ -513,13 +517,9 @@ class DetailPicGet(DetailBase):
         pp_bg = pp_bg.paste_img(
             top_img=pp_png_1_bg,base="cc", value=(-200, 340)
         )
-
-
-
         pp_bg = pp_bg.paste_img(
             top_img=piao, value=(50, 814)
         )
-
         return pp_bg