[Python] How to find cells that contain images with openpyxl

Discussão em 'Python' iniciado por Stack, Maio 10, 2025.

  1. Stack

    Stack Membro Participativo

    I am looping through every cell in a workbook. For some reason, when openpyxl iterates through a worksheet that contains an image, the image is deleted. How does one fix this?

    I am looking for a way to pass over cells that have an image.

    I am not in read_only mode, and do not desire to be, as I am making modifications to the worksheets.

    Something like this would be most useful to me:

    if cell is image:
    pass

    Continue reading...

Compartilhe esta Página