Bug 130697 - Print preview of SVG images rendered pixelated (macOS-only) and crash with LO from master branch
Summary: Print preview of SVG images rendered pixelated (macOS-only) and crash with LO...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Print-Dialog Print-Preview
  Show dependency treegraph
 
Reported: 2020-02-15 23:02 UTC by Thorsten Wagner
Modified: 2023-07-08 12:58 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample image (887.06 KB, image/svg+xml)
2020-02-15 23:03 UTC, Thorsten Wagner
Details
Screenshot (163.17 KB, image/png)
2020-02-15 23:03 UTC, Thorsten Wagner
Details
Screenshot from LO 7.1.3 (228.42 KB, image/png)
2021-06-07 19:08 UTC, Thorsten Wagner
Details
SVG test image (162.54 KB, image/svg+xml)
2021-06-07 19:09 UTC, Thorsten Wagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten Wagner 2020-02-15 23:02:33 UTC
Description:
When printing a document containing SVG images from any LO application (e.g. Writer, Impress, or Draw) print preview of these images is rendered pixelated. A sample SVG image for Draw is attached to reproduce.

Steps to Reproduce:
1. Open attached sample image with Draw
2. Open print dialog with File / Print

Actual Results:
SVG image is rendered pixelated in print preview

Expected Results:
SVG image is rendered sharp in print preview


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Issue existis on macOS at least. Other operanting systems may be affected too. Issue still existis on current revision form master.
Comment 1 Thorsten Wagner 2020-02-15 23:03:02 UTC
Created attachment 157905 [details]
Sample image
Comment 2 Thorsten Wagner 2020-02-15 23:03:20 UTC
Created attachment 157906 [details]
Screenshot
Comment 3 raal 2020-02-17 22:01:30 UTC
I can not confirm with Verze: 6.4.0.3
ID sestavení: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
Vlákna CPU: 4; OS: Linux 4.15; Vykreslování UI: výchozí; VCL: gtk3;
Comment 4 Xisco Faulí 2020-02-18 16:14:21 UTC
I can't reproduce it in

Version: 7.0.0.0.alpha0+
Build ID: 28d844a589e52abfe62dc66b888e78665221ba28
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: x11; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

Does it work if you disable OpenGl ? ->
https://wiki.documentfoundation.org/OpenGL

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the issue is still present
Comment 5 Thorsten Wagner 2020-02-18 19:53:23 UTC
No, issue exists with and without Open GL. As it seems to be not reproducable on Linux/X11 it is an macOS-only issue maybe.
Comment 6 steve 2020-05-11 12:00:07 UTC
macOS 10.15.4
LO 6.4.3.2

confirmed
Comment 7 Thorsten Wagner 2021-06-07 19:07:23 UTC
Preview quality is better with LO 7.1.3 now (see screenshot attached), but there are still some text rendering issues (see red oval within screenshot for an example). The SVG image used for the preview is attached too.

Using current revision from master, LO crashes now with this SVG image.
Comment 8 Thorsten Wagner 2021-06-07 19:08:51 UTC
Created attachment 172683 [details]
Screenshot from LO 7.1.3
Comment 9 Thorsten Wagner 2021-06-07 19:09:50 UTC
Created attachment 172684 [details]
SVG test image
Comment 10 QA Administrators 2023-06-08 03:15:34 UTC Comment hidden (obsolete)
Comment 11 Alec K 2023-07-06 19:36:58 UTC
This bug is no longer reproducible in

Version: 7.5.4.2 (AARCH64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 10; OS: Mac OS X 13.4; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

The image render in print preview has better quality than both provided screenshots.
Comment 12 steve 2023-07-08 12:58:06 UTC
macOS 13.4.1
LO Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7f7ccf955fa1138b712233628de4a73b3f845c7e
CPU threads: 8; OS: Mac OS X 13.4.1; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_DE.UTF-8); UI: en-US
Calc: threaded

svg with degree numbers: print preview rendered as expected. The degree numbers are shown with normal font and not bold as seen in attachment "Screenshot from LO 7.1.3". I assume the greyscale preview colors are due to the fact my printer is not a color printer.

The other svg file "high-resolution tricontouring" is also fine in print preview. However there is a rending issue where the middle circular image is not shown at all. Print preview replicates that, which seems expected.

Patrick Luby mentioned skia has been updated and there were a few fixes around svg files recently as well. Setting to Worksforme since we don't have the commit addressing this specific issue with print preview.

@Thorsten: please re-open if you disagree.

For the remaining svg rendering issue filed https://bugs.documentfoundation.org/show_bug.cgi?id=156201