qax-os / excelize

Go language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
https://xuri.me/excelize
BSD 3-Clause "New" or "Revised" License
17.62k stars 1.68k forks source link

GetPictureCells returns an empty result #1888

Closed GreenHatHG closed 2 months ago

GreenHatHG commented 2 months ago

Description

Steps to reproduce the issue:

    f, _ := excelize.OpenFile("2.xlsx")
    defer f.Close()
    cell, err := f.GetPictureCells("sheet")
    fmt.Println(cell, err)
    pics, err := f.GetPictures("sheet", "A2")
    fmt.Println(pics, err)

Describe the results you received: The function GetPictureCells returns an empty result. Describe the results you expected: There is a picture at cell A2. Output of go version:

GOVERSION='go1.22.2'

Excelize version or commit ID:

github.com/xuri/excelize/v2 v2.8.1

Environment details (OS, Microsoft Excel™ version, physical, etc.): xlsx: 2.xlsx

image

xuri commented 2 months ago

Thanks for your issue. I have fixed this issue. Please upgrade to the master branch code by go get -u github.com/xuri/excelize/v2@master. This patch will be released in the next version.