How to locate a picture? #2503
Replies: 8 comments 1 reply
-
I think if I can get the data, I can probably judge the picture in the row and column
|
Beta Was this translation helpful? Give feedback.
-
Similar to #526 ? |
Beta Was this translation helpful? Give feedback.
-
@yongjun925
|
Beta Was this translation helpful? Give feedback.
-
I was trying to match things up, but in my case I had images bound to the cell. This means I didn't need to fuzzy find the row/col because they were exact. But in any case I still had the issue of correlating images with the proper cells. Here is what appears to work. It may not be correct for all cases, but functionally appears to be working on first pass and I wanted to share:
This will write all the files out in row / col order. |
Beta Was this translation helpful? Give feedback.
-
@arimus |
Beta Was this translation helpful? Give feedback.
-
Very well. Thank you for your help! 👍 |
Beta Was this translation helpful? Give feedback.
-
Thank's a lot! |
Beta Was this translation helpful? Give feedback.
-
I work on a viewer that reads .xlsx files and I try to position the image properly. I have this image in my table, viewed with LibreOffice: When I load the worksheet with // Tl:
let tl = {
nativeCol: 0, // Correct
nativeColOff: 424440, // ?
nativeRow: 2, // Correct
nativeRowOff: 455040, // ?
col: 0.9999950470529966, // NOT correct. I'd expect something like 0.33
colWidth: 201900, // ?
row: 2.632, // Looks close to correct
rowHeight: 720000 // ?
}
// Br:
let br = {
nativeCol: 4, // Correct
nativeColOff: 483480, // ?
nativeRow: 5, // Correct
nativeRowOff: 933840, // ?
col: 4.999991922455574, // NOT correct. I'd expect something like 4.5
colWidth: 123800, // ?
row: 5.948060913705584, // NOT correct. I'd expect something like 5.7
rowHeight: 985000 // ?
}
Possibly related to #1640 |
Beta Was this translation helpful? Give feedback.
-
How do I tell which row and column the picture belongs to?
Beta Was this translation helpful? Give feedback.
All reactions