Created attachment 139738 [details]
Anchor to page, from left and from top relative to page, version without svg:x and svg:y
If Word rotates an image, then it writes it to an odt file in a way, that svg:x and svg:y is missing. The translation before rotation and the translation after rotation are different then.
LibreOffice gets the position of the rotated images wrong in these cases. Word uses the rotation angle with wrong sign, but that does not influence the position.
If you open the files with "_no_XY" and "_withXY" in Word, you can see that the position of the rotated image (width=2cm height=6cm) is the same. If you open the files in LibreOffice, you see, that the position of the rotated image in the "_no_XY" files is wrong.
If svg:x or svg:y is not given, then it defaults to zero.
For a file produced be Word see attachment https://bugs.documentfoundation.org/attachment.cgi?id=139695 from bug 115529.
In the files attached here, I have changed position and transformation manually.
Created attachment 139739 [details]
Anchor to page, from left and from top relative to page text area, version without svg:x and svg:y
Created attachment 139740 [details]
Anchor to page, from left and from top relative to page text area, svg:x and svg:y as saved as default
Created attachment 139741 [details]
Anchor to page, from left and from top relative to page, svg:x and svg:y as saved as default
Created attachment 139759 [details]
Formula with draw:transform attribute
Created attachment 139760 [details]
image with draw:transform attribute
The problem exists independent from rotating. The draw:transform="translate(-2cm -1cm)" attribute in the last two examples is not evaluated. The objects have svg:x="5cm" and svg:y="3cm". Because of the translation the top-left corner should be at position (3cm|2cm).
Proposed patch is in https://gerrit.libreoffice.org/#/c/50176/
Moving to ASSIGNED
On Hackfest Hamburg, April 2018, we have decided to solve the problem in a way, which is more promising for the general goal to bring Writer frames and shapes together. The idea is, to bring the complete transformation matrix to the model and set needed properties using the matrix as authority information.
Therefore I have abandoned https://gerrit.libreoffice.org/#/c/50176/ for now and reset assignee of the bug back to default.
If you want to work an this bug, contact Armin (Armin.Le.Grand@me.com) in addition.