From b85b04412afb2e46f84333d9bf3bae62426297f3 Mon Sep 17 00:00:00 2001 From: Akira Date: Sun, 10 Nov 2024 01:41:34 +0900 Subject: [PATCH] Fix goalimage scale 2 --- SumasenLibs/excel_lib/sumaexcel/sumaexcel.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SumasenLibs/excel_lib/sumaexcel/sumaexcel.py b/SumasenLibs/excel_lib/sumaexcel/sumaexcel.py index 3d2ca21..e1f8c48 100644 --- a/SumasenLibs/excel_lib/sumaexcel/sumaexcel.py +++ b/SumasenLibs/excel_lib/sumaexcel/sumaexcel.py @@ -433,11 +433,11 @@ class SumasenExcel: cell_aspect = effective_cell_width / effective_cell_height if img_aspect > cell_aspect: - width = effective_cell_width*scale - height = int(width / img_aspect)*scale + width = effective_cell_width*int(scale) + height = int(width / img_aspect)*int(scale) else: - height = effective_cell_height*scale - width = int(height * img_aspect)*scale + height = effective_cell_height*int(scale) + width = int(height * img_aspect)*int(scale) # 画像処理部分の修正 #from openpyxl.utils.units import pixels_to_EMU