openpyxl-image-loader icon indicating copy to clipboard operation
openpyxl-image-loader copied to clipboard

image beyond column Z

Open rdoleong opened this issue 4 years ago • 2 comments

Hi Mauricio,

I noticed when the image is located in a column grater than Z there is a error:

line 20, in init col = string.ascii_uppercase[image.anchor._from.col] IndexError: string index out of range

Maybe you should use:

col = openpyxl.utils.cell.get_column_letter(image.anchor._from.col + 1)

Good luck and thank for your image-loader Ricardo Leon

rdoleong avatar Aug 09 '20 04:08 rdoleong

Thank you a lot, let me check it and I hope to fix in the next release

ultr4nerd avatar Aug 11 '20 19:08 ultr4nerd

For anyone reading this in 2023, this suggested fix works. Just requires editing the source code locally, as the change has not been made.

fdeters avatar Jan 27 '23 18:01 fdeters