Bug 138653 - SVG images look extremely bad after DOCX export or compress
Summary: SVG images look extremely bad after DOCX export or compress
Status: RESOLVED DUPLICATE of bug 51510
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Images
  Show dependency treegraph
 
Reported: 2020-12-04 08:56 UTC by Telesto
Modified: 2023-06-02 15:05 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (35.50 KB, application/vnd.oasis.opendocument.text)
2020-12-04 08:56 UTC, Telesto
Details
Bibisect log (3.57 KB, text/plain)
2020-12-04 09:09 UTC, Telesto
Details
Example document with an SVG graphic (simple equation) (13.91 KB, application/vnd.oasis.opendocument.text)
2023-02-11 18:07 UTC, Roland Baudin
Details
SVG graphic example (simple equation) (7.59 KB, image/svg+xml)
2023-02-11 18:07 UTC, Roland Baudin
Details
Rendering in MS Word 2016 (screenshot) (50.30 KB, image/png)
2023-02-11 18:08 UTC, Roland Baudin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-12-04 08:56:30 UTC
Description:
SVG images look extremely bad after DOCX export or compress

Steps to Reproduce:
1. Open the attached file
2. Save to DOCX
3. File reload

Actual Results:
Fuzzy unreadable image

Expected Results:
Something more crisp an clear


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 7.2.0.0.alpha0+ (x64)
Build ID: 32fdb8eb3506bc8dcf013cc713fe8e5debceb940
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

and in
Versie: 4.1.0.4 
Build ID: 89ea49ddacd9aa532507cbf852f2bb22b1ace28

a lot better in
Versie 4.0.0.3 (Bouw-id: 7545bee9c2a0782548772a21bc84a9dcc583b89)

-> There still room to argue 4.0 still producing sub optimal results (see bug 51510). However this would as this point be an real improvement of the current situation
Comment 1 Telesto 2020-12-04 08:56:54 UTC
Created attachment 167817 [details]
Example file
Comment 2 Telesto 2020-12-04 09:09:53 UTC
Created attachment 167819 [details]
Bibisect log

Bisected to:
author	Armin Le Grand <alg@apache.org>	2012-05-30 13:44:19 +0000
committer	Caolán McNamara <caolanm@redhat.com>	2013-03-16 01:57:53 +0000
commit a1a0830d1ac3ffabbe35bd8a0264b64f1f7a9d67 (patch)
tree 7425273b6d0195397dfe635810bd48063c0d9054
parent e8620b247dcba55f67ad7eaf63cfe5ac3831b187 (diff)
Resolves: #i119601# support for transparency in PNG export dialog
Added support for transparency in PNG export dialog and support for alpha
channnel

Conflicts:
	svtools/source/filter/exportdialog.cxx

Change-Id: I324bfd6a34803478bf17f113e015620056c90567

https://cgit.freedesktop.org/libreoffice/core/commit/?id=a1a0830d1ac3ffabbe35bd8a0264b64f1f7a9d67
Comment 3 Xisco Faulí 2020-12-07 16:30:20 UTC
Reproduced in

Version: 7.2.0.0.alpha0+
Build ID: 84af20ef3ea72190784e9e7be820684c2558ba8c
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 Telesto 2021-03-10 07:22:57 UTC
@Luboš Luňák
Not your bug and has formally no priority. However this bug simply bad. See bug 51510 and list of see also. Note quite a number of those 'see also' reports by me (for a more realistic view)

There goes something horribly wrong at image format conversion. Used for image compress, image export, or DOCX (for file formats not supported by DOCX format, say SVG (take QR ) or embedded PDF.

Sometimes it looks like compress compressing a the actual screen image painted on screen or some weird thumbnail kind of thing. Or using some kind of StarView media file as intermediary (EMF to JPG example: bug 140918) Results surely bad. 

So Skia being fast, and has  proper scaling and such, but still having to cope with ugly images in quite a number of cases.

So would really grateful if you could find some time to take a look (or find a reason to take a look :P).
Comment 5 Telesto 2021-06-16 05:41:22 UTC
Adding CC to Armin Le Grand
Comment 6 Roland Baudin 2023-02-11 18:06:16 UTC
This annoying bug is still there with LibreOffice 7.5.0.3.

To reproduce, open the attached file test-equation.odt and save it as .docx, then open it with LO and see that the SVG graphic is badly blurred. The bad rendering is the same (or worse) in MS Word 2016 as you can see on the screenshot.

So exchanging technical documents that contain SVG graphics with colleagues that work with MS Office is rather problematic.
Comment 7 Roland Baudin 2023-02-11 18:07:05 UTC
Created attachment 185320 [details]
Example document with an SVG graphic (simple equation)
Comment 8 Roland Baudin 2023-02-11 18:07:35 UTC
Created attachment 185321 [details]
SVG graphic example (simple equation)
Comment 9 Roland Baudin 2023-02-11 18:08:04 UTC
Created attachment 185322 [details]
Rendering in MS Word 2016 (screenshot)
Comment 10 Justin L 2023-06-02 15:05:22 UTC
I don't really see a need for lots of "SVG is terrible" bug reports. Mark as duplicate.

*** This bug has been marked as a duplicate of bug 51510 ***