Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi Noel,

Noel Grandin schrieb:
On 2013-10-15 10:11, Miklos Vajna wrote:
Writer bitmaps are only allowed to be rotated in 90º steps

But that is a faked rotation. The picture is (silently!) changed from linked to embedded. The rotation is not done by using a transformation but by generating a new picture.

, but in Word
they can be rotated to any angle. When importing a document containing a
45º bitmap the rotation is lost, and it keeps lost when the document is
saved back.


The problem is not the rotation of the image (more exactly of the internal draw:frame element) itself. You can rotate Writer-kind images already be applying a transformation via macro. But the missing part is to make the surrounding text consider the rotated image.
And in addition, there are bugs:
(1) The area of the bounding box, which is not covered by content is drawn wrongly. You see this bug already, when using negative crop values.
(2) Cropping does not work sufficient on rotated images.



Perhaps we should extend the Writer code and the OO document spec to
cope with arbitrary rotations?

That would be the wrong way. We would keep different kind of images. The better way is, to enhance the Draw-kind images to have all features of the Writer-kind images and then drop the Writer-kind images.


Will take a little longer, what with needing to get the spec change
ratified, but it seems like it might be a safer change, long-term, IMO.

There is no need for a change in spec. The element draw:frame, which is used in Draw and Writer as well, has already an attribute draw:transform.

Kind regards
Regina


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.