From d30802e266e74011c59ce2d781ea6bc391e366cb Mon Sep 17 00:00:00 2001 From: zhouchengrong Date: Thu, 27 Jun 2024 10:43:42 +0800 Subject: [PATCH] =?UTF-8?q?feat=20oss=E6=9B=BF=E6=8D=A2=E4=B8=BAS3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix --- app/service/design/items/pipelines/painting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/service/design/items/pipelines/painting.py b/app/service/design/items/pipelines/painting.py index 49bbf01..2b8d50f 100644 --- a/app/service/design/items/pipelines/painting.py +++ b/app/service/design/items/pipelines/painting.py @@ -207,6 +207,8 @@ class PrintPainting(object): if result['print']['print_angle_list'][0] != 0: painting_dict = self.painting_collection(painting_dict, result, print_trigger=True) painting_dict['tile_print'] = self.rotate_crop_image(img=painting_dict['tile_print'], angle=result['print']['print_angle_list'][0], crop=True) + painting_dict['mask_inv_print'] = self.rotate_crop_image(img=painting_dict['mask_inv_print'], angle=result['print']['print_angle_list'][0], crop=True) + # resize 到sketch大小 painting_dict['tile_print'] = self.resize_and_crop(img=painting_dict['tile_print'], target_width=painting_dict['dim_image_w'], target_height=painting_dict['dim_image_h']) painting_dict['mask_inv_print'] = self.resize_and_crop(img=painting_dict['mask_inv_print'], target_width=painting_dict['dim_image_w'], target_height=painting_dict['dim_image_h'])