Bug 150274 - Grey bottom/right border appear exporting a black-area page to PNG
Summary: Grey bottom/right border appear exporting a black-area page to PNG
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Graphics-Export
  Show dependency treegraph
 
Reported: 2022-08-05 07:07 UTC by Mike Kaganski
Modified: 2026-06-22 03:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
zoom on overlapped border after export by 7.4.0.2 (3.60 KB, image/png)
2022-08-11 20:14 UTC, stragu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2022-08-05 07:07:09 UTC
1. Create a new text document
2. In page style, set area to black color
3. Optional (for better visibility): set page size to 5x5 cm
4. Export the document to PNG (with default settings, like 96 PPI, any compression, interlaced, save transparency).

The resulting PNG has a grey border at bottom and right.
Comment 1 Mike Kaganski 2022-08-05 07:17:26 UTC
Note that the page style uses "Background cover margins" option [1].

[1] https://git.libreoffice.org/core/commit/56d8007a197b095b09423c691a51515567648e80 by Michael Stahl
Comment 2 stragu 2022-08-11 20:05:39 UTC
Confirmed with:

Version: 7.4.0.2 / LibreOffice Community
Build ID: 1512ce97d7ed39dce3121f7e15651fd8895f950e
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Looks like it's a border of one pixel width of grey and one pixel width (outermost) of full transparency (see attachment).
Comment 3 stragu 2022-08-11 20:12:05 UTC
The transparent border is in 7.4.0.2 but not in 7.2.7.2. Only the grey border in that one.

Version: 7.2.7.2 / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 4 stragu 2022-08-11 20:14:14 UTC
Created attachment 181732 [details]
zoom on overlapped border after export by 7.4.0.2

PNG export is overlapped on other picture in GIMP. 1 pixel-wide grey band and 1 pixel-wide transparent border are visible.
Comment 5 QA Administrators 2026-06-22 03:12:58 UTC
Dear Mike Kaganski,

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