Bug 161938 - Can't see SVG picture with encoding="windows-1252" in the prolog
Summary: Can't see SVG picture with encoding="windows-1252" in the prolog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2024-07-07 14:37 UTC by OfficeUser
Modified: 2024-07-09 15:41 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
SVG picture (68.56 KB, application/octet-stream)
2024-07-07 14:38 UTC, OfficeUser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description OfficeUser 2024-07-07 14:37:44 UTC
Description:
No LibreOffice application is able to insert the attached SVG picture.

Steps to Reproduce:
1. Open an new Writer, Calc, Impress or Draw document
2. Try to insert the attached SVG picture

Actual Results:
Only a very small frame without picture content is inserted.

Expected Results:
The SVG picture should be inserted properly.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.4.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Ubuntu package version: 4:24.2.4~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded
Comment 1 OfficeUser 2024-07-07 14:38:29 UTC
Created attachment 195149 [details]
SVG picture
Comment 2 m_a_riosv 2024-07-07 17:09:06 UTC
Image is imported but not visible, neither selectable, even it is listed on the Navigator.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cdf2681d996286953dffa8a033de1b947ae23768
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 3 Regina Henschel 2024-07-07 19:09:04 UTC
It seems, that the import filter struggles with encoding="windows-1252" in the prolog. Change it to encoding="UTF-8" and the import works.
Comment 4 OfficeUser 2024-07-07 20:33:05 UTC
(In reply to Regina Henschel from comment #3)
> It seems, that the import filter struggles with encoding="windows-1252" in
> the prolog. Change it to encoding="UTF-8" and the import works.

Thanks, you are right!

In case it is somehow useful, I would like to point out that ONLYOFFICE has a similar problem, but fails not on import but on printout with the same SVG:
https://github.com/ONLYOFFICE/DocumentServer/issues/2792#issuecomment-2210535901
Comment 5 Xisco Faulí 2024-07-08 08:19:23 UTC
Also reproduced in

Version: 7.3.0.0.alpha1+ / LibreOffice Community
Build ID: 229123ccc6f90ebf66b3e659bebbd53f8a9bdd3a
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: fr-FR (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 6 Stéphane Guillou (stragu) 2024-07-09 15:41:04 UTC
(In reply to m_a_riosv from comment #2)
> Image is imported but not visible, neither selectable, even it is listed on
> the Navigator.
In a recent master build, it's possible to right-click it and open its Properties, which shows a 0×0 size. Changing it has not effect. Same with Properties sidebar deck.

Back in 5.0.0.5, it would be imported with a ridiculously large size according to the values in the sidebar, and changing the size would persist, but contents of the SVG still weren't shown.