Ability to add an image to a WriteOnlyWorksheet

Issue #729 resolved
Alex Jeffrey created an issue

Hi there, I'm not sure if this is currently possible (WriteOnlyWorksheet doesn't have an add_image method) but is there a way I can add an image to a Write-Only worksheet? I'm converting an existing regular Workbook to write_only mode for performance reasons but this is an existing feature I need to add in.

Comments (4)

  1. CharlieC

    If it isn't currently possible it wouldn't be too hard to add it. The behaviour is basically the same as if you add a chart: the worksheet needs to be passed a link to the relevant drawing.

    Would welcome a PR (with tests) that does this.

  2. Alex Jeffrey reporter

    sure thing, I'll see what I can do :)

    I've looked at the code, it looks like WriteOnlyWorksheet._write already tries to pass along self._images but the add_image is missing. I'll drop that in.

  3. Log in to comment