Bug 139085 - SVG Graphic Objects look spidery from LO 7.0
Summary: SVG Graphic Objects look spidery from LO 7.0
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
7.0.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.2.0 target:7.1.2
Keywords: bibisected, bisected, regression
: 138500 139783 139861 140150 (view as bug list)
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2020-12-20 05:24 UTC by Stephen Meatheringham
Modified: 2023-11-05 16:19 UTC (History)
14 users (show)

See Also:
Crash report or crash signature:


Attachments
Graphics that look bad (124.73 KB, image/png)
2020-12-20 05:26 UTC, Stephen Meatheringham
Details
Graphics that look good (126.10 KB, image/png)
2020-12-20 05:27 UTC, Stephen Meatheringham
Details
ODT file exhibiting described problem (53.61 KB, application/vnd.oasis.opendocument.text)
2020-12-21 23:46 UTC, Stephen Meatheringham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Meatheringham 2020-12-20 05:24:43 UTC
Description:
I have been using TeXMaths (0.48.2) for a couple of months with
LibreOffice (running under Linux Mint 19.3). I have been saving
the LibreOffice files in ODT format and inserting the LaTeX as SVG images.

Recently, I have found that the quality of some equations can be
best-described as "spidery". It seems to me that something changed in
LibreOffice for versions after 7.0.1.2. I have no problems with
LibreOffice 6.4.7 nor with 7.0.1.2. However, all version of 7.0.2, 7.0.3
and 7.0.4 exhibit the problem.

Interestingly, I see a similar problem when in LibreOffice I select
"About LibreOffice" from the "Help" menu. The text "The Document
Foundation" is spidery in all versions of LibreOffice where I have the
TeXMaths + SVG problem.

It seems unlikely that this is a problem with TeXMaths, but more likely
LibreOffice. However, I have seen no mention it on the LibreOffice forums.

I have included two images with this email, called good.jpg and bad.jpg,
that show the problem, both with some equations generated using TeXMaths
and the "About LibreOffice" menu window.

I would appreciate any thoughts you might have.

Steps to Reproduce:
1.Create SVG object and save and close file
2.Open file and view under LO <= 7.0.1.2 - fine
3.Open file and View under LO >= 7.0.2.2 - wrong

Actual Results:
As in "steps to reproduce" above

Expected Results:
Graphics should not be "spidery" in any versions of LO


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.0.4.2
Build ID: dcf040e67528d9187c66b2379df5ea4407429775
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 1 Stephen Meatheringham 2020-12-20 05:26:31 UTC
Created attachment 168349 [details]
Graphics that look bad
Comment 2 Stephen Meatheringham 2020-12-20 05:27:03 UTC
Created attachment 168350 [details]
Graphics that look good
Comment 3 Xisco Faulí 2020-12-21 14:15:27 UTC Comment hidden (obsolete)
Comment 4 Stephen Meatheringham 2020-12-21 23:46:35 UTC
Created attachment 168392 [details]
ODT file exhibiting described problem

This file shows the problem with SVG images. Text in the file explains further.
Comment 5 Roman Kuznetsov 2020-12-24 19:58:27 UTC
confirm in

Version: 7.2.0.0.alpha0+ (x64)
Build ID: cb22636a56b35d4e118446cc3c9fe606db6f46b0
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL

images look good and the same in 6.4 => regression
Comment 6 V Stuart Foote 2020-12-24 21:54:52 UTC
*** Bug 138500 has been marked as a duplicate of this bug. ***
Comment 7 Heiko Tietze 2021-01-05 09:02:51 UTC Comment hidden (obsolete)
Comment 8 Heiko Tietze 2021-01-05 09:08:49 UTC
The brand image tagline looks rasterized but isn't- the image is directly drawn from SVG without any further modifications. And it looks good to me on Linux.

However, the fancy about image became worse also on Linux too, and transparency and/or shadows are not respected anymore. So it's clearly an issue with the SVG filter.
Comment 9 Heiko Tietze 2021-01-20 15:57:50 UTC
*** Bug 139783 has been marked as a duplicate of this bug. ***
Comment 10 Telesto 2021-01-23 15:24:01 UTC
*** Bug 139861 has been marked as a duplicate of this bug. ***
Comment 11 steve 2021-01-23 15:33:39 UTC
Setting OS to "All" as https://bugs.documentfoundation.org//show_bug.cgi?id=139861 was set to dupe.

SVG display in LibreOffice on macOS is really wonky. Logo in About and StartCenter look blurry as do the icons when selecting SVG icon themes.
Comment 12 Aron Budea 2021-01-26 23:19:40 UTC
With the sample document, I bibisected the bug to the 7.0 backport of the following commit using repo bibisect-linux-64-7.0. This is the same as in bug 138684. I think there's a previous step to it, which isn't the same as in bug 138684, but I didn't bother looking for that (can, if it's important). Adding CC: to Mike Kaganski.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=1f5ac5b08fd8c1ddadc5f38595a487db2895957e
author		Mike Kaganski <mike.kaganski@collabora.com>	2020-08-24 07:56:46 +0300
committer	Mike Kaganski <mike.kaganski@collabora.com>	2020-08-24 07:49:02 +0200

Don't apply transparency twice when drawing to mpAlphaVDev
Comment 13 Aron Budea 2021-01-26 23:21:16 UTC
Actually, this isn't an SVG filter issue.
Comment 14 Jason Wong 2021-02-23 13:44:18 UTC
*** Bug 140150 has been marked as a duplicate of this bug. ***
Comment 15 Stéphane Guillou (stragu) 2023-11-05 16:19:30 UTC
About screen image + equation images issue reproduced in 7.1.0.3

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

... but resolved in 7.1.2.1.

Bibisected the fix with linux-64-7.1 repo to 058b59ae92ca19beed698ad1a2d6ee6f1182213a, which is a cherrypick of:

commit 6b8c157a0b4f37a09fdbf656919b2df06a3abc3e
author	Luboš Luňák Thu Mar 04 15:35:44 2021 +0100
committer	Luboš Luňák Mon Mar 08 13:46:36 2021 +0100
make RenderMaskPrimitive2DPixel() clip using clipping (tdf#140797)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111966

Thanks Luboš!