Bug 89828 - Image Export crops based on margins instead of page boundaries when Save transparency checked, ignores transparency settings
Summary: Image Export crops based on margins instead of page boundaries when Save tran...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.4.1.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Draw-Images
  Show dependency treegraph
 
Reported: 2015-03-04 20:57 UTC by tmacalp
Modified: 2024-02-10 03:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example drawing showing edge of margins (11.12 KB, application/vnd.oasis.opendocument.graphics)
2015-03-04 21:14 UTC, tmacalp
Details
Export from example document showing current behavior in 4.4.1.2 (35.08 KB, image/png)
2015-03-04 21:17 UTC, tmacalp
Details
Export from example document showing behavior in 4.3.5.2 (49.80 KB, image/png)
2015-03-04 21:20 UTC, tmacalp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tmacalp 2015-03-04 20:57:36 UTC
In LibreOffice 4.4.1.2, when using draw to export certain images that supports transparency (at least png and gif) and "Save transparency" is checked, the resulting image is cropped to page MARGINS instead of page BOUNDARIES.  

When you perform the same process unchecking "Save transparency," the resulting image is cropped by page boundaries as expected.  Also, at some point after 4.2.8, the "Save transparency" setting is now broken and a solid background color is always used.

Steps to reproduce:
1. Create new drawing
2. Create a shape that completely covers area within margins
3. Make sure object is not selected
4. File -> Export
5. Select png and click "Export..."
6. Uncheck "Save transparency" and click OK
7. View the image: Note that everything is correct.  The background is solid and extends to the full page boundary.
8. File -> Export
9. Select png again and click "Export..." (note that file type annoyingly wasn't saved from last use)
10. Leave "Save transparency" checked (note that the dialog annoyingly forgot our last state of being unchecked)
11. View the image:

Expected:
We should have an image that extends to the full page boundaries but has a transparent background, except for our shape

Actual:
We have an image that is cropped down to the page margins, showing no page margins.  We can't really see it in this example, but the background is not transparent.  It is white, or whatever color we have set for our "Document Background" theme.

I tested this as the behavior in LO 4.4.1.2 using 32bit Fedora17.  Things get weirder in previous versions.

LO 4.2.8.2: In this version the background is actually transparent, as we selected.  Unfortunately, the boundary is even more screwed up.  It still cropped based on the page margins, but then it, for some reason, attempts to apply a blank transparent blank space, the thickness of the page margin along the bottom and right sides of the exported png.  So our resulting image is even more chopped off than the page margins...

LO 4.3.5.2: Almost exactly the same as the behavior described above in 4.2.8.2, except now transparency is broken!  The correct transparent background has been replaced by white.  The only section that remains transparent is the chopped off swath along the bottom and right of the image.
Comment 1 tmacalp 2015-03-04 21:14:27 UTC
Created attachment 113894 [details]
Example drawing showing edge of margins

I've attached an example drawing that can be used to show the crop boundaries.
Comment 2 tmacalp 2015-03-04 21:17:10 UTC
Created attachment 113895 [details]
Export from example document showing current behavior in 4.4.1.2

Here is an exported png showing the current behavior of cropping based on the margins instead of page boundaries.  Also, you'll note that the png has a solid white background instead of a transparent one.
Comment 3 tmacalp 2015-03-04 21:20:48 UTC
Created attachment 113896 [details]
Export from example document showing behavior in 4.3.5.2

Here is a png export from 4.3.5 that shows the weird transparent blank margin area.
Comment 4 Buovjaga 2015-03-18 11:35:24 UTC
Reproduced with attachment 113894 [details].
4.2.0 behaves the same as 4.2.8 in the description.

Win 7 Pro 64-bit, LibO Version: 4.4.1.2
Build ID: 45e2de17089c24a1fa810c8f975a7171ba4cd432
Locale: fi_FI

Version: 4.5.0.0.alpha0+
Build ID: 16b8fbb2e0c72ce321c9f569284f4ef37339af2c
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2015-03-10_09:56:13
Locale: fi_FI

Ubuntu 14.10 64-bit 
Version: 4.2.0.4
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71
Comment 5 tommy27 2016-04-16 07:23:01 UTC Comment hidden (obsolete)
Comment 6 tmacalp 2016-04-18 03:02:51 UTC
I can still reproduce in:

Version: 5.1.2.2.0+
Build ID: 5.1.2.2 Arch Linux build-1
CPU Threads: 6; OS Version: Linux 4.5; UI Render: default; 
Locale: en-US (en_US.UTF-8)
Comment 7 QA Administrators 2018-02-08 03:36:26 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2020-02-09 03:42:22 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2022-02-09 03:41:16 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2024-02-10 03:13:28 UTC
Dear tmacalp,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug