Bug 155502 - Cannot scale image to edge of paper size despite margins set to zero
Summary: Cannot scale image to edge of paper size despite margins set to zero
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.3.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2023-05-26 06:47 UTC by har_rki219_mc2e
Modified: 2023-06-02 10:46 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
a sample document with an image in it that cannot to be stretched to the bottom edge (342.99 KB, application/vnd.oasis.opendocument.text)
2023-05-26 06:48 UTC, har_rki219_mc2e
Details

Note You need to log in before you can comment on or make changes to this bug.
Description har_rki219_mc2e 2023-05-26 06:47:01 UTC
Description:
In Microsoft Word I am able to scale images up to the edges of the paper if I set the margins to zero. In Libre Writer 7.5, however, I have an image which I set “Anchor As Character” and set all the margins (top, right, left, bottom, gutter) to zero, but I am unable to scale the image up the edges when I grab it on the lower right corner to drag. I can drag the middle right handle and stretch it to the right edge, but it does not allow me stretch it using the middle bottom handle. The Footer is off. Verified as bug from this forum https://ask.libreoffice.org/t/cannot-scale-images-to-edges-of-paper-size-despite-margins-set-to-zero/91873

Steps to Reproduce:
1. Set paper size to Legal and set all margins to zero in Format > Page Style
2. Drag an Image into the file
3. Right click image > Anchor As Character
4. Stretch Image to fill the entire page
5. Notice that you can't stretch it fully to the bottom edge

Actual Results:
Libre Writer does not allow you to stretch to the bottom edge

Expected Results:
You should be able to stretch your image to any size up to the edges if margins are all set to zero and Footer is off.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
It should have allowed the user to stretch the image to any size
Comment 1 har_rki219_mc2e 2023-05-26 06:48:13 UTC
Created attachment 187514 [details]
a sample document with an image in it that cannot to be stretched to the bottom edge
Comment 2 Telesto 2023-05-26 09:30:35 UTC
MSO indeed allows to enlarge an image larger compared to document size, resulting in area being clipped.


This can't be done:
* By the handles on the image (MSO allows this)
* By going to Image Properties -> Position and Size tab & increasing width/height


Work-around in this case:
Anyhow, in this case, crop the borders of the image/document and resize it until it's full page document
Comment 3 Heiko Tietze 2023-05-30 09:46:41 UTC
Scaling the image beyond the page width (or height) is not possible, yet.

But a reasonable expectation; I wonder if there is any reason to limit the scaling to the page size (if so we could auto-crop the remaining part).