mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #478] Wrong images position on iPhone iOS 18.4 #375
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#375
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 @RamboYao on GitHub (May 13, 2025).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/478
Originally assigned to: @jmcnamara on GitHub.
libxlsxwriter Version: 1.1.4 and 1.2.2
iPhone: iOS18.4
I use lixxlsxwriter to export .xlsx excel within images on my application and use UIDocumentViewController to open it. Before iOS 18.4, the images position is correct, but on iOS18.4 the images position seem like has some problem and I have no idea how to fix it. I will appreciate if you can give some advice to solve it.
@jmcnamara commented on GitHub (May 13, 2025):
Libxlsxwriter uses the same image positioning as Excel and there are a lot of tests to verify that it works correctly. Could you try test with a file created in Excel (not with libxlsxwriter) and see if you get the same result? Let me the result.
Also, if you are positioning an image in a cell then the newer
worksheet_embed_image()method may give a better result if it is supported byUIDocumentViewController.@RamboYao commented on GitHub (May 14, 2025):
I tested with a file created in Excel.
I preview the file on my Xcode, and open it on my app with UIDocumentInteractionController.
The first image is from Xcode,the second image is from my app.
@jmcnamara commented on GitHub (May 14, 2025):
Is the layout different in those images?
If so, please attach both files so I can test them.
@RamboYao commented on GitHub (May 15, 2025):
I didn't catch you very well.
This is the original excel file.
Also I will try to use work_sheet_embed_image() method to test it.
worksheet.xlsx
@RamboYao commented on GitHub (May 15, 2025):
I tested worksheet_embed_image() method, but the image did not show in file.
I open it with Numbers app, and I can't see the images too.
@jmcnamara commented on GitHub (May 15, 2025):
Embedded images are a new feature in Excel so they may not work yet in Numbers or
UIDocumentViewControllerbut it was worth checking.@jmcnamara commented on GitHub (May 15, 2025):
Adding file for testing:
worksheet-2.xlsx
@RamboYao commented on GitHub (May 15, 2025):
@jmcnamara commented on GitHub (May 15, 2025):
Test file created in Excel 2007:
gh478_1.xlsx
@RamboYao commented on GitHub (May 15, 2025):
1、Open by UIDocumentInteractionController
2、Preview On Xcode:
@jmcnamara commented on GitHub (May 15, 2025):
The test file
gh478_1.xlsxwas created in Excel 2007 for maximum backward compatibility and it shows the same offset issue. So this isn't a libxlsxwriter issue. It affects all files created by Excel.Unfortunately, that means that there isn't anything that I can do to help you.
@RamboYao commented on GitHub (May 15, 2025):
Thanks For your time.