Qu

xlsx.add_image

Builtin index · File I/O

xlsx.add_image(wb, sheet, path, [at=], [width=], [height=], [alt=])

Input: wb, sheet, path, at, width, height, alt · Output: no output

What it is

Places a PNG, JPEG or GIF with its top-left corner at cell at (default: two columns right of the used range, row 2, like add_chart). With neither size given it is shown at its pixel size at 96 dpi, scaled down to at most 160 mm wide; with one of width=/height= (millimetres or lengths) the other follows the aspect ratio. It is anchored to cells with a two-cell anchor (it moves with them), the form every reader keeps, and alt= is its description for screen readers.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
xlsx.add_image(wb, sheet, path, [at=], [width=], [height=], [alt=])
wb —not documented yet
sheet —not documented yet
path —not documented yet
at optionalPlaces a PNG, JPEG or GIF with its top-left corner at cell at (default: two columns right of the used range, row 2, like add_chart).
width optionalwith one of width=/height= (millimetres or lengths) the other follows the aspect ratio.
height optionalwith one of width=/height= (millimetres or lengths) the other follows the aspect ratio.
alt optionalIt is anchored to cells with a two-cell anchor (it moves with them), the form every reader keeps, and alt= is its description for screen readers.
no output—

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.