xou/elixlsx

Is it possible to embed images?

Opened this issue ยท 8 comments

I have a workflow where I'm generating the .xlsx and uploading it to S3.

Would it be possible to embed an image either by reading a file or by using a Base64 encoding?

If the current version does not support this would it be technically feasible to add such a feature?

This also is not possible but it's a nice new feature. I validate how to include this function.

I made a start on this in my fork https://github.com/proactively/elixlsx on branch "image-support"

A few apologies: My editor setup runs mix format automatically so by the time I was half way through I realised half the files were reformatted. So I backtracked, ran mix format on the whole codebase then re-applied my wip. So my image support will only apply cleanly to a mix formatted repo.

Also not much in the way of tests and I don't have any time right now to add them.

Anyway, just a heads up in case it's useful for anyone

xou commented

Awesome! Feel free to send a pull request for the mix formatted codebase at any time as well.

@proactively are you still planning to make a PR for this?

Hi,
Really cool feature. Do you still have plans to merge this in the base code?
Currently checking this for a side project where I need image upload in excel files.

Thanks!