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

Set picture scale #1224

Closed
CHANTXU64 opened this issue May 7, 2022 · 2 comments
Closed

Set picture scale #1224

CHANTXU64 opened this issue May 7, 2022 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@CHANTXU64
Copy link
Contributor

Description

Incorrect picture scale.

Steps to reproduce the issue:

  1. download https://git-scm.com/images/[email protected] to git.png
  2. run:
f := excelize.NewFile()
f.AddPicture("Sheet1", "A1", "git.png", `{"x_scale": 0.33, "y_scale": 0.33}`)
f.SaveAs("gitlogo.xlsx")

Describe the results you received:

in wps:
scale height: 31%
scale width: 36%

Describe the results you expected:

in wps:
scale height: 33%
scale width: 33%

Output of go version:

go version go1.18.1 linux/amd64

Excelize version or commit ID:

eed431e

Environment details (OS, Microsoft Excel™ version, physical, etc.):
Linux x86_64, wps-office-cn 11.1.0.10976-2

@xuri
Copy link
Member

xuri commented May 8, 2022

This issue is duplicate with #248 and #212.

@xuri xuri added the duplicate This issue or pull request already exists label May 8, 2022
@xuri
Copy link
Member

xuri commented May 10, 2022

I will close this issue and move discuss on #248.

@xuri xuri closed this as completed May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants