From 2f8b86b6831db7e01a5988444eb686edca192b21 Mon Sep 17 00:00:00 2001 From: Akira Date: Sun, 10 Nov 2024 01:44:02 +0900 Subject: [PATCH] Fix goalimage scale 3 --- SumasenLibs/excel_lib/sumaexcel/sumaexcel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SumasenLibs/excel_lib/sumaexcel/sumaexcel.py b/SumasenLibs/excel_lib/sumaexcel/sumaexcel.py index e1f8c48..8336ce3 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*int(scale) + width = effective_cell_width height = int(width / img_aspect)*int(scale) else: height = effective_cell_height*int(scale) - width = int(height * img_aspect)*int(scale) + width = int(height * img_aspect) # 画像処理部分の修正 #from openpyxl.utils.units import pixels_to_EMU