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

AddPicture automatically change the ratio of picture without any format #1419

Closed
Noah-Chiu opened this issue Dec 9, 2022 · 2 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@Noah-Chiu
Copy link

Description

Steps to reproduce the issue:
1.file.AddPicture("Sheet1", "F8", "image.jpg", ``)
2.Save and open the excel to check format of picture

It automatically change the ratio of my picture, that cause the x_scale and y_scale or other format are not work expectedly.

Describe the results you received:
image

Describe the results you expected:
image

Output of go version:

go 1.17

Excelize version or commit ID:

v2.6.1

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

@xuri
Copy link
Member

xuri commented Dec 9, 2022

Thanks for your issue. This is related to #260 and #279. The actual image size may be inconsistent between different spreadsheet applications. For example, the image scale shows 100% in Microsoft Excel 2007 and 2010 but not in Microsoft Excel 2016. The reason for that was columns width and row height depend on the display device resolution, so please adjust the image scale manually to fit your priority environments. I think this issue can be closed, and merged into #260 to continue to discuss this problem.

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

xuri commented Dec 20, 2022

I closed this issue. Please let me know if you have any questions, and reopen this anytime.

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