openpyxl.drawing.image module

class openpyxl.drawing.image.Image(img)[source]

Bases: object

Image in a spreadsheet

anchor = 'A1'
path
openpyxl.drawing.image.bounding_box(bw, bh, w, h)[source]

Returns a tuple (new_width, new_height) which has the property that it fits within box_width and box_height and has (close to) the same aspect ratio as the original size