https://bugs.documentfoundation.org/show_bug.cgi?id=169332

--- Comment #7 from Bayram Çiçek <[email protected]> ---
Created attachment 205371
  --> https://bugs.documentfoundation.org/attachment.cgi?id=205371&action=edit
xlsx document with text under the image

Hi.

I've been working on this ticket for a few weeks. I didn't find any issues on
the width calculation on the LO side. But column width of Excel and Calc seems
different. (Caolan)
This seems the main reason why width of an image is different in both
application. Image width sticks to the column location rather than its width.

I see excel itself has different calculations on the image widths. Some info
about column widths:

```
Column width is not a pure point measurement. Instead, it’s based on the number
of characters of the default font that can fit in the cell. For example, a
column width of 8.43 means about 8 characters of the default font (Calibri,
size 11) fit across the cell. Excel internally converts this into points for
display, but it’s not a straight “height vs. width” comparison [...]
```

The attached document has some text underneath the image. I uploaded some
screenshots to compare the documents in the previous comments.

- If I take the exact image width during import (avoiding changes in the
codebase), and apply it to Calc -> the image position relative to columns will
be wrong. 

- So, at the moment, we can't say "get the exact image width from Excel and
make it the same width in Calc". -> position -related to columns- will be
wrong.

Maybe this is just how it works? Is this really a bug? I'm not sure, and I'm
confused here.

@Gabor: What is the expected outcome here? What behavior do you think is
correct?

Thank you.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to