Docx: Images are inserted skewed

Created on 6 Mar 2019  路  2Comments  路  Source: dolanmiu/docx

Images are inserted with a skew that scaling doesn't _quite_ fix.

For example, I am trying to insert this original image:
google

It is inserted like this (sorry for the German UI, but you can see the original rectangular image of 4,87 x 14,39 cm has been skewed to a square of 2,65 cm):
auto_insert

If I scale it, for instance scale(3, 1), the image is still shown skewed, but you can see from the image dialog that the size has been correctly scaled:
scaled

At this point, if I click OK in this dialog, the setting kicks in and the image will be shown scaled correctly.

Most helpful comment

Yes this is expected and deliberate behavoir

all images are default 100 x 100

it is up to you to specify the dimensions

it is incredibly difficult to deduce the dimensions of an image based on raw buffer data

until that is resolved, it will be 100 x 100 by default

All 2 comments

Yes this is expected and deliberate behavoir

all images are default 100 x 100

it is up to you to specify the dimensions

it is incredibly difficult to deduce the dimensions of an image based on raw buffer data

until that is resolved, it will be 100 x 100 by default

Thanks for the explanation!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liquidslr picture liquidslr  路  4Comments

uldcra picture uldcra  路  3Comments

barberousse picture barberousse  路  5Comments

iainfreestone picture iainfreestone  路  3Comments

efx picture efx  路  5Comments