Fix goalimage scale 3

This commit is contained in:
2024-11-10 01:44:02 +09:00
parent b85b04412a
commit 2f8b86b683

View File

@ -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