Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to read pictures embedded in cells #664

Closed
heviye opened this issue Jul 13, 2020 · 14 comments
Closed

How to read pictures embedded in cells #664

heviye opened this issue Jul 13, 2020 · 14 comments
Labels
enhancement New feature or request

Comments

@heviye
Copy link

heviye commented Jul 13, 2020

No description provided.

@xuri
Copy link
Member

xuri commented Jul 13, 2020

Did you mean that get the picture binary content from a worksheet? please reference GetPicture.

@heviye
Copy link
Author

heviye commented Jul 13, 2020

Did you mean that get the picture binary content from a worksheet? please reference GetPicture.

What I mean is: after inserting the picture into Excel, it can be floating or embedded, the floating one can be obtained, but the embedded one cannot be obtained

@xuri
Copy link
Member

xuri commented Jul 13, 2020

Thanks for your feedback. Which version of Excelize are you using, could you provide non-confidential information attachment?

@xuri xuri added the needs more info This issue can't reproduce, need more info label Jul 13, 2020
@heviye
Copy link
Author

heviye commented Jul 13, 2020

Thanks for your feedback. Which version of Excelize are you using, could you provide non-confidential information attachment?

The version is v2
I use WPS

@xuri
Copy link
Member

xuri commented Jul 13, 2020

Please follow by issue template to provide code/attachments and steps to reproduce the issue, which will helpful for me quickly resolve the issue.

@heviye
Copy link
Author

heviye commented Jul 13, 2020

Description
When inserting a picture in Excel, if you select the floating mode, you can read the picture stream, but if you select the embedded cell mode, you cannot read the picture stream

Steps to reproduce the issue:

file, raw, err := f.GetPicture("Sheet1", "D3")
# err is nil
# raw is []
# file is empty

Describe the results you received:

file, raw, err := f.GetPicture("Sheet1", "D3")
# err is nil
# raw is []byte{...}
# file is file name

Output of go version:

GO111MODULE="auto"
GOARCH="amd64"
GOBIN="/Users/hevi/go/bin"
GOCACHE="/Users/hevi/Library/Caches/go-build"
GOENV="/Users/hevi/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY="code.gz66.net"
GONOSUMDB="code.gz66.net"
GOOS="darwin"
GOPATH="/Users/hevi/go"
GOPRIVATE="code.gz66.net"
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/Cellar/go/1.13.8/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.13.8/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/hevi/goWorks/code.gz66.net/sqzl/go-zl-edge/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/r0/hh7_wynx3h3dclx7x_szbdkc0000gn/T/go-build744695952=/tmp/go-build -gno-record-gcc-switches -fno-common"

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

  • macOS Catalina 10.15.5
  • WPS Office 2.4.0(3944)
  • Macbook pro

@xuri
Copy link
Member

xuri commented Jul 14, 2020

Embedded picture in the Kingsoft WPS will set cell with formula DISPIMG, excelize not support it currently, and it can't work with other spreadsheet applications, such as Microsoft Excel, Apache OpenOffice, LibreOffice, etc, please use a floating picture instead of an embedded picture if you can.

@xuri xuri removed the needs more info This issue can't reproduce, need more info label Jul 14, 2020
@heviye
Copy link
Author

heviye commented Jul 14, 2020

Embedded picture in the Kingsoft WPS will set cell with formula DISPIMG, excelize not support it currently, and it can't work with other spreadsheet applications, such as Microsoft Excel, Apache OpenOffice, LibreOffice, etc, please use a floating picture instead of an embedded picture if you can.

OK, Thank you!!

@xuri xuri closed this as completed Jul 14, 2020
@ysk229
Copy link

ysk229 commented Dec 12, 2023

@xuri
Copy link
Member

xuri commented Dec 12, 2023

Thanks for your feedback. I'll consider to add support for this.

@xuri xuri reopened this Dec 12, 2023
@xuri xuri added the enhancement New feature or request label Dec 12, 2023
oneweek20169902 pushed a commit to oneweek20169902/excelize that referenced this issue Dec 15, 2023
@xuri xuri closed this as completed in 00d6259 Dec 15, 2023
@xuri
Copy link
Member

xuri commented Dec 15, 2023

The GetPictures function now support get embedded cell images created by Kingsoft WPS Office, please upgrade to the master branch code, and this feature will be released in the next version.

@niumowangorz
Copy link

GetPictures功能现支持获取金山WPS Office创建的嵌入单元格图片,请升级至主分支代码,该功能将在下一版本发布。

Publish it soon

@LittleMiao
Copy link

The GetPictures function now support get embedded cell images created by Kingsoft WPS Office, please upgrade to the master branch code, and this feature will be released in the next version.

When is this version expected to be released? Please let me know

@xuri
Copy link
Member

xuri commented Feb 24, 2024

The version 2.8.1 will be released on February 26, 2024.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants