mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #274] Incorrect image height #218
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#218
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RaFaeL-NN on GitHub (Feb 29, 2020).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/274
Originally assigned to: @jmcnamara on GitHub.
examples\images.c
`
Height is 103%. Why?
0.6 scale -> 63%, and so on. 1.1 -> 116%.
But 0.5 scaling is correct, but 0.5 only
@jmcnamara commented on GitHub (Feb 29, 2020):
Could you attach the image you are using
@RaFaeL-NN commented on GitHub (Feb 29, 2020):
images.zip
@jmcnamara commented on GitHub (Feb 29, 2020):
It looks okay in my version of Excel when I run this program (same as your with the filename and image renamed):
Output:
What happens when you manually insert that image into Excel? What dimensions do you get?
@RaFaeL-NN commented on GitHub (Mar 1, 2020):
I found an issue. _worksheet_size_row returns 19 instead of 20. I change
to
and it works correct now for me. I don't know a nature of this issue (old compiler, compiling options or smth other) but I hope you'll apply this patch too
@jmcnamara commented on GitHub (Mar 1, 2020):
Good find. Does the following work? It may be more explicit. The
4.0/3.0actually comes from the ratio of DPIs96.0/72.0:@RaFaeL-NN commented on GitHub (Mar 1, 2020):
Do you mean (row->height) / 0.75 ? 4/3=1.3(3)
I check, row->height / 0.75 works too
@jmcnamara commented on GitHub (Mar 1, 2020):
Good, thanks. I’ll probably go with that.
@jmcnamara commented on GitHub (Mar 21, 2020):
Ok. Thanks. Fixed on master.