Created attachment 87610 [details]
Steps to reproduce:
1. Open attached file. Notice that the image has a 45º rotation in the original document but that's not displayed.
2. Save as docx.
3. If you opened the saved document again with Word, you would see that the rotation information has disappeared.
I'm attaching pdfs to show how the document looks in Word before and after the export.
Created attachment 87611 [details]
Test case as rendered by Word before the export
Created attachment 87612 [details]
Test case as rendered by Word after the export
Bitmaps inserted in Writer are only allowed to be rotated in 90-degree steps, but when a bitmap is treated as a drawing (for example, pasting from Draw) it can be rotated to any arbitrary position.
I wonder if importing embedded bitmaps coming from docx as Draw objects would be an acceptable solution for this bug.
Thank you for your bug report, I can reproduce this bug running
Build ID: 70feb7d99726f064edab4605a8ab840c50ec57a
OS: Mac osx 10.9.
According to the linked discussion, I will try to import this kind of rotated bitmaps as Draw objects, which support free rotation.
Some facts about how embedded bitmaps are imported from docx documents:
* If the original document used VML, the bitmap is always imported as an XShape object and the rotation information is ignored.
* If the original document used DrawingML, the bitmap is first imported as an XShape and then transformed to an XTextContent. The rotation information is lost during the transformation.
The same is true of vml that use flip: x instead of rotating. The transformation is not preserved on import to writer.
Jacobo Aragunde Perez committed a patch related to this issue.
It has been pushed to "master":
fdo#70457: Preserve rotation of embedded bitmaps from docx
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Jacobo, I have just tried to provide clarification for bug #61727 along with a test DOCX I created under Word Mac 2011 (original DOCX provided in that bug is a Word 2007 one and quite large). That bug also deals with a rotation issue, and while it seemed potentially related to grouping of raster graphics, my testing seemed to indicate that grouping may not be a factor and that rotation under DOCX is simply not supported.
I thought I should comment here in case your recent patch fixes the rotation issue in that bug also. If it does not, please excuse my comment. If it does, then you can probably close both bugs.
This bug seems to be the same as this one :
is this correct ?
and does your patch work with the attached file ?
*** Bug 38702 has been marked as a duplicate of this bug. ***
(In reply to comment #10)
> This bug seems to be the same as this one :
> is this correct ?
> and does your patch work with the attached file ?
No, it's only for docx.
Fix verified using a master build with Build ID: f7e6521efca5e5966a65e84848a1c35d71ba1a0b