Fix goalimage scale 3
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user