there. I want to change size of picture using openpyxl. width = 11.21 cm. height = 7.69 cm.
or I want to change the size of picture same as the cell.
my code is below. it makes very small size picture. could you help me?
from openpyxl import load_workbook
from openpyxl.drawing.image import Image
filename="1.xlsx"
wb = load_workbook(filename)
ws = wb.worksheets[0]
img = Image('13.5.jpg')
img.width = 11.21
img.height = 7.69
ws.add_image(img, 'B13')
wb.save('1.xlsx')
print("done")