[GH-ISSUE #384] Add support for header/footer image buffers #308

Open
opened 2026-05-05 12:07:57 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @mohd-akram on GitHub (Nov 16, 2022).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/384

Originally assigned to: @jmcnamara on GitHub.

I noticed there's no way to insert a header/footer image via a buffer. I'm thinking perhaps the lxw_header_footer_options struct can have three new fields, image_left_size, image_center_size and image_right_size. If one is non-zero, its corresponding image field is read as a buffer instead of a filename.

Originally created by @mohd-akram on GitHub (Nov 16, 2022). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/384 Originally assigned to: @jmcnamara on GitHub. I noticed there's no way to insert a header/footer image via a buffer. I'm thinking perhaps the `lxw_header_footer_options` struct can have three new fields, `image_left_size`, `image_center_size` and `image_right_size`. If one is non-zero, its corresponding image field is read as a buffer instead of a filename.
gitea-mirror added the
feature request
label 2026-05-05 12:07:57 -06:00
Author
Owner

@jmcnamara commented on GitHub (Nov 22, 2022):

I noticed there's no way to insert a header/footer image via a buffer.

I stopped short of adding that because I thought that I would wait until someone requested it. And also because the interface was going to be a bit complicated. I still don't have a strong idea about what it should look like. I'll need to think about it for a while, or at least get some time to think about it.

<!-- gh-comment-id:1324029669 --> @jmcnamara commented on GitHub (Nov 22, 2022): > I noticed there's no way to insert a header/footer image via a buffer. I stopped short of adding that because I thought that I would wait until someone requested it. And also because the interface was going to be a bit complicated. I still don't have a strong idea about what it should look like. I'll need to think about it for a while, or at least get some time to think about it.
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#308
No description provided.