[GH-ISSUE #201] how to insert a picture to a shape? #165

Closed
opened 2026-05-05 11:49:16 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @liufeijin on GitHub (Oct 20, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/201

Originally assigned to: @jmcnamara on GitHub.

some times, we put a shape in excel because it can be put any place and don't be limited start from cell.
and put a picture in a shape, the picture can be auto fitted in the shape.

Originally created by @liufeijin on GitHub (Oct 20, 2018). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/201 Originally assigned to: @jmcnamara on GitHub. some times, we put a shape in excel because it can be put any place and don't be limited start from cell. and put a picture in a shape, the picture can be auto fitted in the shape.
gitea-mirror 2026-05-05 11:49:16 -06:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jmcnamara commented on GitHub (Oct 20, 2018):

Hi,

That isn't possible with libxlsxwriter.

However, you can resize and reposition an image using worksheet_insert_image_opt(): https://libxlsxwriter.github.io/images_8c-example.html#a11

John

<!-- gh-comment-id:431579963 --> @jmcnamara commented on GitHub (Oct 20, 2018): Hi, That isn't possible with libxlsxwriter. However, you can resize and reposition an image using `worksheet_insert_image_opt()`: https://libxlsxwriter.github.io/images_8c-example.html#a11 John
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#165
No description provided.