Bug 159913 - Formatting: A rotated image cannot be resized bigger than the width of the page
Summary: Formatting: A rotated image cannot be resized bigger than the width of the page
Status: RESOLVED DUPLICATE of bug 124498
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-26 17:23 UTC by Ole Tange
Modified: 2024-02-27 14:57 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Resize rotated image to fill the page (20.58 KB, application/vnd.oasis.opendocument.text)
2024-02-26 17:24 UTC, Ole Tange
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Tange 2024-02-26 17:23:58 UTC
Description:
I have inserted an image.

I can resize the image, so it fills the width of the page: The max width of the image = the width of the page.

But if I rotate the image 90 degrees, then I should be able to resize the image to be taller than the width of the page. E.g. I should be able to resize it to fill the complete page. But it seems the height of the image is limited to the width of the page.


Steps to Reproduce:
1. Open attached page 1
2. Mark the image
3. Make the image fill the whole page by dragging the corner.

1. Open attached page 2
2. Mark the image
3. Make the image fill more than the whole page by dragging the corner.


Actual Results:
The image is not resized.

Expected Results:
The image should be resized.


Reproducible: Always


User Profile Reset: No

Additional Info:
Workaround: Rotate the image before inserting it into LibreWriter.
Comment 1 Ole Tange 2024-02-26 17:24:51 UTC
Created attachment 192804 [details]
Resize rotated image to fill the page
Comment 2 Regina Henschel 2024-02-27 00:27:25 UTC
That is indeed an unsolved problem, see bug 124498.

To workaround the problem, first insert the image in Draw. Then copy&paste it from Draw. That way you get a "Draw"-image, which has no problems with rotation. The downside is, that "Draw"-images do not have the features "Image Map" and "Contour Polygon". But likely you will not need them.

*** This bug has been marked as a duplicate of bug 124498 ***
Comment 3 Ole Tange 2024-02-27 14:57:41 UTC
The workaround works for the first part (90 degree rotation), but not the second part (non-90 degree rotation, scale to bigger than the page).

If you make an intersection with the rotated image, it makes the intersection on the non-rotated image, and then rotates the intersection.

So you cannot do this as a workaround in Draw:

1. rotate image (non-90 degrees)
2. intersect with rectangle <-- this part fails
3. scale as needed