Bug 158269 - Writer's PNG export produces corrupt file
Summary: Writer's PNG export produces corrupt file
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.3.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-18 22:02 UTC by linus.sturm.github
Modified: 2023-11-19 13:43 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Document I have tried this with (28.43 KB, application/vnd.oasis.opendocument.text)
2023-11-18 22:04 UTC, linus.sturm.github
Details
ZIP with the suspectedly corrupt image (see comment) (170 bytes, application/x-zip-compressed)
2023-11-18 22:09 UTC, linus.sturm.github
Details
PNG generated from your sample (84.65 KB, image/png)
2023-11-19 00:59 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description linus.sturm.github 2023-11-18 22:02:41 UTC
Description:
When exporting a document from Writer to PNG, it creates a corrupt file.

Steps to Reproduce:
1. Create a document and type some text
2. Hit File->Export...
3. Choose PNG as file type and hit 'Save'
4. Hit 'Export'

Actual Results:
The created image cannot be opened with either Windows Photos or IrfanView, both show an error message hinting to a corrupt file.

Expected Results:
Exporting creates a PNG file that can be opened and used.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Comment 1 linus.sturm.github 2023-11-18 22:04:23 UTC
Created attachment 190904 [details]
Document I have tried this with

This is the document I've tried it with (but I've had the issue before). Btw, JPEG export works without a problem.
Comment 2 linus.sturm.github 2023-11-18 22:09:28 UTC
Created attachment 190905 [details]
ZIP with the suspectedly corrupt image (see comment)

ZIP file of the suspectedly corrupt PNG file, as I couldn't attach it directly. I suspect the PNG file is actually empty (as Bugzilla told me the file is "either ... or empty").
Comment 3 m_a_riosv 2023-11-19 00:59:58 UTC
Created attachment 190907 [details]
PNG generated from your sample

Looks fine for me:
Version: 7.6.3.1 (X86_64) / LibreOffice Community
Build ID: c4af5b1259bceea6e979e6fe2435dbee7a5a87c2
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Comment 4 linus.sturm.github 2023-11-19 01:24:15 UTC
@m.a.riosv

Interesting... Either the problem only affects my version, or there's a problem with my machine...
Comment 5 m_a_riosv 2023-11-19 01:25:37 UTC
On Windows, got Add/remove, and select repair for LibreOffice.
Comment 6 linus.sturm.github 2023-11-19 11:30:06 UTC
@m.a.riosv
I've done as instructed – I repaired my LO installation and restarted Windows. I then opened my document again and tried exporting as PNG. The issue persists. I've looked into the files using a text editor (N++) and found them to be completely empty. The issue also persists with another document.
Comment 7 linus.sturm.github 2023-11-19 11:49:39 UTC
I've just updated LO to the newest version (7.6.2.1), and the issue is gone. Apparently, this only affects the version I was using before (7.5.3.2).
Comment 8 Horst Schirmeier 2023-11-19 11:57:11 UTC
Cannot reproduce with LO 7.5.8.1 on Linux x86-64, so this is probably Windows specific or specific to LO 7.5.3.x?
Comment 9 m_a_riosv 2023-11-19 13:43:56 UTC
Then lets closed it.