Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image or graph support #119

Open
mannaris opened this issue May 29, 2023 · 3 comments
Open

image or graph support #119

mannaris opened this issue May 29, 2023 · 3 comments

Comments

@mannaris
Copy link

I need to insert an image (of a graph) or a graph into a file while generating.
Is it possible to add one of the features?

@shuchkin
Copy link
Owner

hard

@mortezagt
Copy link

hard

please do it.
im sure u can bro

@strongpapazola
Copy link

why that's hard, because

You need understanding the XLSX File Structure
An XLSX file is essentially a ZIP file that contains several XML files and folders. The structure typically looks like this:

bash
Copy code
/[Content_Types].xml
/_rels/
/xl/
workbook.xml
/worksheets/
sheet1.xml
/media/
image1.png (this is where your images go)
/drawings/
drawing1.xml (this file will reference the image)
/_rels/
workbook.xml.rels (relationships between the files)
drawing1.xml.rels (links images to the sheet)
To insert an image, you need to:

Add the image file in the /xl/media/ directory.
Create drawing XML (drawing1.xml) to place the image and define its size and position.
Link the drawing to the worksheet (sheet1.xml) so that it knows where the image is placed.
Define relationships (.rels files) between the worksheet, the drawing, and the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants