Skip to content

Image support - continuation#124

Open
joseustra wants to merge 5 commits intoxou:masterfrom
coverflex-tech:image-support
Open

Image support - continuation#124
joseustra wants to merge 5 commits intoxou:masterfrom
coverflex-tech:image-support

Conversation

@joseustra
Copy link

This is the continuation of the work done by @ngscheurich on the PR #97

As the development of the original PR looks stopped, and we need this feature on my company's project, I decided to try to address the comments so we can try to merge it.

Please, let me know if you have any concerns about this PR.

Note: the whole work was done by @ngscheurich, I'm just trying to address the comments.


From original PR:

This adds support for embedding images in workbooks. It technically does
two main things:

  • Implements the changes introduced by proactively's image support
    branch

    on top of the most recent commit to master

  • Adds width and height options to Elixlsx.Image so that it's
    possible to configure how many columns/rows and image should occupyThis adds support for embedding images in workbooks. It technically does
    two main things:

  • Implements the changes introduced by proactively's image support
    branch

    on top of the most recent commit to master

  • Adds width and height options to Elixlsx.Image so that it's
    possible to configure how many columns/rows and image should occupy

ngscheurich and others added 5 commits March 26, 2020 11:24
This adds support for embedding images in workbooks. It technically does
two main things:

- Implements the changes introduced by [proactively's image support
  branch](https://github.com/proactively/elixlsx/tree/image-support-no-reformat)
  on top of the most recent commit to master
- Adds `width` and `height` options to `Elixlsx.Image` so that it's
  possible to configure how many columns/rows and image should occupy
@ngscheurich ngscheurich mentioned this pull request Jun 15, 2022
@Kaquadu
Copy link

Kaquadu commented Jul 18, 2022

Hi guys, any possibility it is going to be released anytime soon? 🤔 I'm depending on this branch in my project and I would love it to be released. Or is there anything it is missing now?

@rifkiKargo
Copy link

Hi @xou, thank you for your great work in this library, much appreciated. Anyways, is there any possibility that we can merge this PR? i have a case where i need to add images. Thank you!

krishandley added a commit to krishandley/elixlsx that referenced this pull request Aug 25, 2023
The previous work in xou#124 by x and x
was using a twoCellAnchor but that's quite tricky
to get right.

This is now using a oneCellAnchor to make the
calculations much simpler.

I have added a few extra tests.

I also fixed the formula because I couldn't run
the example file without doing that first.
krishandley added a commit to krishandley/elixlsx that referenced this pull request Aug 25, 2023
The previous work in xou#124 by @ngscheurich and @joseustra
was using a twoCellAnchor but that's quite tricky
to get right.

This is now using a oneCellAnchor to make the
calculations much simpler.

The api is almost the same, but you don't need to add
any emu based values for offsets. You can also align
the image from the right of a cell. That's something
I needed but you also have to take the max character
width into account.

Also added a few extra tests.

I also fixed the formula because I couldn't run
the example file without doing that first.
krishandley added a commit to krishandley/elixlsx that referenced this pull request Aug 26, 2023
The previous work in xou#124 by @ngscheurich and @joseustra
was using a twoCellAnchor but that's quite tricky
to get right.

This is now using a oneCellAnchor to make the
calculations much simpler.

The api is almost the same, but you don't need to add
any emu based values for offsets. You can also align
the image from the right of a cell. That's something
I needed but you also have to take the max character
width into account.

Also added a few extra tests for a few basic files.

I also fixed the formula because it didn't work
in the example file.
@xou xou force-pushed the master branch 3 times, most recently from e7bdfd0 to 68acd8d Compare January 28, 2024 16:00
ninjarab pushed a commit to hiivemarkets/elixlsx that referenced this pull request Apr 25, 2025
The previous work in xou#124 by @ngscheurich and @joseustra
was using a twoCellAnchor but that's quite tricky
to get right.

This is now using a oneCellAnchor to make the
calculations much simpler.

The api is almost the same, but you don't need to add
any emu based values for offsets. You can also align
the image from the right of a cell. That's something
I needed but you also have to take the max character
width into account.

Also added a few extra tests for a few basic files.

I also fixed the formula because it didn't work
in the example file.
ninjarab added a commit to hiivemarkets/elixlsx that referenced this pull request Apr 25, 2025
* Images

The previous work in xou#124 by @ngscheurich and @joseustra
was using a twoCellAnchor but that's quite tricky
to get right.

This is now using a oneCellAnchor to make the
calculations much simpler.

The api is almost the same, but you don't need to add
any emu based values for offsets. You can also align
the image from the right of a cell. That's something
I needed but you also have to take the max character
width into account.

Also added a few extra tests for a few basic files.

I also fixed the formula because it didn't work
in the example file.

* Update some deps so it compiles

* Update warnings

---------

Co-authored-by: Kris Handley <handley.kris@gmail.com>
@jcowgar
Copy link

jcowgar commented May 21, 2025

Also need image support, any chance on getting movement on this?

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

Successfully merging this pull request may close these issues.

5 participants