Download it now!
Bug 108764 - LibreOffice Writer and PDF export don’t respect the SVG 'crispEdges' value for the shape-rendering attribute
Summary: LibreOffice Writer and PDF export don’t respect the SVG 'crispEdges' value fo...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.3.1.2 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2017-06-25 13:06 UTC by miikka.salminen
Modified: 2019-03-16 20:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A test SVG file that uses crispEdges (21.84 KB, image/svg+xml)
2017-06-25 13:07 UTC, miikka.salminen
Details
A test SVG file that doesn’t use crispEdges (21.75 KB, image/svg+xml)
2017-06-25 13:08 UTC, miikka.salminen
Details
A test LibreOffice writer document with the crisp SVG embedded (15.69 KB, application/vnd.oasis.opendocument.text)
2017-06-25 13:09 UTC, miikka.salminen
Details
A test LibreOffice writer document with the not crisp SVG embedded (15.66 KB, application/vnd.oasis.opendocument.text)
2017-06-25 13:10 UTC, miikka.salminen
Details
A rendered PDF of the LO doc with the crisp SVG embedded (3.67 KB, application/pdf)
2017-06-25 13:10 UTC, miikka.salminen
Details
A rendered PDF of the LO doc with the not crisp SVG embedded (3.67 KB, application/pdf)
2017-06-25 13:11 UTC, miikka.salminen
Details
A Firefox rendered version of the crisp SVG for comparison (3.93 KB, image/png)
2017-06-25 13:12 UTC, miikka.salminen
Details
A Firefox rendered version of the not crisp SVG for comparison (6.36 KB, image/png)
2017-06-25 13:12 UTC, miikka.salminen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description miikka.salminen 2017-06-25 13:06:29 UTC
Description:
LibreOffice Writer displays embedded SVG files that use the 'crispEdges' value for the shape-rendering property with blurry edges and corners. The rendering result is the same if the said value has not been set. Also, rendered PDF files created from these Writer documents result in similarly blurry images.

This is particularly detrimental for documents that contain QR codes or other barcodes embedded as SVG images, since sharp precision with these kinds of images is essential, and anti-aliasing is harmful.

Steps to Reproduce:
1. Embed an SVG image that uses the 'crispEdges' value for the shape-rendering property.
(2. Optional: export as PDF.)

Actual Results:  
1. The embedded SVG has blurry edges.
(2. Optional: the image in the PDF has blurry edges.)

Expected Results:
1. The edges and corners should be sharp.
(2. Optional: the edges and corners in the generated PDF should be sharp.)


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Comment 1 miikka.salminen 2017-06-25 13:07:57 UTC
Created attachment 134266 [details]
A test SVG file that uses crispEdges
Comment 2 miikka.salminen 2017-06-25 13:08:37 UTC
Created attachment 134267 [details]
A test SVG file that doesn’t use crispEdges
Comment 3 miikka.salminen 2017-06-25 13:09:36 UTC
Created attachment 134268 [details]
A test LibreOffice writer document with the crisp SVG embedded
Comment 4 miikka.salminen 2017-06-25 13:10:11 UTC
Created attachment 134269 [details]
A test LibreOffice writer document with the not crisp SVG embedded
Comment 5 miikka.salminen 2017-06-25 13:10:59 UTC
Created attachment 134270 [details]
A rendered PDF of the LO doc with the crisp SVG embedded
Comment 6 miikka.salminen 2017-06-25 13:11:26 UTC
Created attachment 134271 [details]
A rendered PDF of the LO doc with the not crisp SVG embedded
Comment 7 miikka.salminen 2017-06-25 13:12:17 UTC
Created attachment 134272 [details]
A Firefox rendered version of the crisp SVG for comparison
Comment 8 miikka.salminen 2017-06-25 13:12:43 UTC
Created attachment 134273 [details]
A Firefox rendered version of the not crisp SVG for comparison
Comment 9 Buovjaga 2017-06-28 17:20:37 UTC
Somewhat hard to see, but yes, I confirm.

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha0+
Build ID: f808c50c6eece87d515df3b84b1c774395b5d9bc
CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on June 26th 2017
Comment 10 QA Administrators 2018-06-29 02:45:42 UTC Comment hidden (obsolete)
Comment 11 miikka.salminen 2018-07-09 15:49:58 UTC
The bug is still present in the latest version of LibreOffice.

Help -> About LibreOffice:

Version: 6.1.0.1 (x64)
Build ID: 378e26bd4f22a135cef5fa17afd5d4171d8da21a
CPU threads: 8; OS: Windows 6.1; UI render: default; 
Locale: fi-FI (fi_FI); Calc: CL