Bug 147052 - SVG import transforms image
Summary: SVG import transforms image
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
6.3.6.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2022-01-29 08:05 UTC by patrice.karatchentzeff
Modified: 2023-07-03 10:49 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
original SVG file (28.18 KB, image/svg+xml)
2022-01-29 08:05 UTC, patrice.karatchentzeff
Details
After importing in Writer (18.16 KB, image/png)
2022-01-29 08:07 UTC, patrice.karatchentzeff
Details
blue arrow tail and arrow head are displayed as broken and black shapes (195.48 KB, application/vnd.oasis.opendocument.text)
2022-09-16 17:38 UTC, csongor
Details
Comparison LibreOffice 7.5 master and Firefox (deleted)
2022-09-21 08:07 UTC, Xisco Faulí
Details
Comparison LibreOffice 7.5 master and Firefox (86.81 KB, image/png)
2022-09-21 08:08 UTC, Xisco Faulí
Details
screenshot: LO 6.3 vs 7.5 (68.52 KB, image/png)
2022-11-23 09:13 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description patrice.karatchentzeff 2022-01-29 08:05:43 UTC
Created attachment 177894 [details]
original SVG file

Hi,

I have multiple problem in importing SVG file in Writer.

- Some colors are not taken in account, like the arrow part of a line.
- Some texts are misaligned

I put 2 examples that is more than lot of explanation.

My writer version:
Version: 7.2.5.2 / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 4; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 1 patrice.karatchentzeff 2022-01-29 08:07:27 UTC
Created attachment 177895 [details]
After importing in Writer

The result in Writer. The text under the PAM is misaligned.
Comment 2 patrice.karatchentzeff 2022-01-29 08:08:17 UTC
I forgot : in the screen shot, the arrow are black, instead of green...
Comment 3 Roman Kuznetsov 2022-02-01 20:16:46 UTC
Confirm in

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: d140817428cdbb519efa496f578bf6c054c94361
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
Comment 4 csongor 2022-09-16 17:36:56 UTC
I can confirm the errors exist in 7.4.0.3.

I attach a new sample file which shows the issues with the arrow. There are two SVG images in the file, both exported from Inkscape:
- a straight Bezier curve with a circular arrow tail and a triangle arrowhead
- composition of three shapes: a circle, a rounded rectangle and a triangle

The two objects look almost the same in Inkscape. A very minor difference is in the shape of the triangle arrowhead. In Writer, however, they look very different.

Bugs:
- the tail of the Bezier arrow is a black quarter of a circle instead of a blue complete one
- the head of the Bezier arrow is just half of a black triangle instead of a complete blue one
- the contours of the rounded rectangle at both ends are visible light blue lines, which should be flat blue, having the same color as the circle and the triangle.
Comment 5 csongor 2022-09-16 17:38:39 UTC
Created attachment 182501 [details]
blue arrow tail and arrow head are displayed as broken and black shapes
Comment 6 Xisco Faulí 2022-09-21 08:07:35 UTC
Created attachment 182591 [details]
Comparison LibreOffice 7.5 master and Firefox
Comment 7 Xisco Faulí 2022-09-21 08:08:10 UTC
The content of attachment 182591 [details] has been deleted for the following reason:

incorrect file
Comment 8 Xisco Faulí 2022-09-21 08:08:38 UTC
Created attachment 182592 [details]
Comparison LibreOffice 7.5 master and Firefox
Comment 9 Stéphane Guillou (stragu) 2022-11-23 09:12:35 UTC
The appimage of Inkscape 1.2.1 gives me an "internal error" on the file, but the preview shows that the lower coloured labels should all be under the PAM4 red line, and the arrowheads should be green.

In LO 6.3, the arrowheads were already black and the text alignment already wrong. In LO 7.5, same thing but text alignment somewhat differently shifter horizontally.
Comment 10 Stéphane Guillou (stragu) 2022-11-23 09:13:14 UTC
Created attachment 183730 [details]
screenshot: LO 6.3 vs 7.5
Comment 11 Xisco Faulí 2023-07-03 10:49:35 UTC
Still reproducible in

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7f1012806f5cf2cd53e52d8f2a95c09a2215efbc
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded