Bug 124627 - Some triangles have rounded corners when exporting to SVG
Summary: Some triangles have rounded corners when exporting to SVG
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.0.2.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Save
  Show dependency treegraph
 
Reported: 2019-04-09 17:40 UTC by Volga
Modified: 2023-07-28 05:50 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Exported SVG (88.03 KB, image/svg+xml)
2019-04-09 17:42 UTC, Volga
Details
Exported EMF from the same selection (167.62 KB, image/x-emf)
2019-04-09 17:44 UTC, Volga
Details
Source PDF (934.21 KB, application/pdf)
2019-04-09 20:44 UTC, Roman Kuznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Volga 2019-04-09 17:40:44 UTC
Description:
I found some shapes looks accurate if I try to expert as SVG.

Steps to Reproduce:
1. Download PDF file from https://www.gcis.gov.za/sites/default/files/docs/resourcecentre/guidelines/corpid/1.pdf
2. Open with LibreOffice Draw
3. Select the South African national coat of arms
4. Click File -> Expert
5. Select the file format as SVG, enable Selection checkbox

Actual Results:
After opening SVG image, some triangular shapes looks a bit rounded if I resize to large size on screen.

Expected Results:
The triangular shapes should be more accurate while they are experted from selection.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.3.0.0.alpha0+ (x64)
Build ID: f512f8818aec08a5b463c8acdf781e7ab27036f5
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-04-09_03:11:29
Locale: zh-CN (zh_CN); UI-Language: en-US
Calc: threaded
Comment 1 Volga 2019-04-09 17:42:14 UTC
Created attachment 150626 [details]
Exported SVG
Comment 2 Volga 2019-04-09 17:44:17 UTC
Created attachment 150627 [details]
Exported EMF from the same selection
Comment 3 Roman Kuznetsov 2019-04-09 20:44:07 UTC
Created attachment 150629 [details]
Source PDF
Comment 4 Roman Kuznetsov 2019-04-09 20:50:44 UTC
May be I'm just eyeless, but I don't see where "some triangle looks a bit rounded". 
I tried open SVG in Firefox, may be in Inkscape someone will can to make more scale?
Comment 5 mulla.tasanim 2019-04-10 00:21:43 UTC
Thank you for reporting the bug.

I can confirm that the bug is present in

Version: 6.2.1.2 (x64)
Build ID: 7bcb35dc3024a62dea0caee87020152d1ee96e71
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: CL


Version: 6.3.0.0.alpha0+ (x64)
Build ID: 91cdf22b88a4f7bec243c8fb187627e766d3294c
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-03-08_00:38:10
Locale: en-US (en_US); UI-Language: en-US
Calc: CL


I have opened SVG in chrome and in LibreOffice Draw.
Logo on South African national coat of arms Page changes its shape.
Sharp angle of triangle looks rounded
Comment 6 Volga 2019-04-10 05:20:46 UTC
(In reply to Volga from comment #2)
> Created attachment 150627 [details]
> Exported EMF from the same selection
While I opened this EMF file with Imagine [1], scaling to very large size, all shapes render as expected, sharp angle of triangle looks good.

=-=Ref=-=
[1] http://www.nyam.pe.kr/dev/imagine/
Comment 7 BogdanB 2019-04-10 15:20:04 UTC
I confirm. 
The SVG is exporting the triangles with rounded corners.

Version: 6.3.0.0.alpha0+
Build ID: 84d4125b28c384f9ac6285737a5bb9093978798e
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-04-06_20:07:58
Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US
Calc: threaded
Comment 8 Buovjaga 2019-04-24 14:05:46 UTC
Already in 5.0.2 (Win 10)

Look at the green triangles below the bird.
Comment 9 QA Administrators 2021-04-24 04:10:08 UTC Comment hidden (obsolete)
Comment 10 BogdanB 2021-04-24 05:14:00 UTC
The same in
Version: 7.1.2.2 (x64) / LibreOffice Community
Build ID: 8a45595d069ef5570103caea1b71cc9d82b2aae4
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: threaded
Comment 11 Volga 2021-04-26 03:10:26 UTC
So LibreOffice need to increase the precision of graphics while exporting to SVG.
Comment 12 Volga 2021-07-27 15:29:00 UTC
This is still reproduced in

Version: 7.2.0.1 (x64) / LibreOffice Community
Build ID: 32efc3b7f3a71cfa6a7fa3f6c208333df48656cc
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: threaded

and

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 67f2a99229101757af4f40118f4d3c83ba38648b
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: threaded
Comment 13 QA Administrators 2023-07-28 03:16:48 UTC Comment hidden (obsolete)
Comment 14 Volga 2023-07-28 05:50:45 UTC
There's no any change in

Version: 7.6.0.1 (X86_64) / LibreOffice Community
Build ID: 776eaf34564cbf3f034a0ba1fd1d5c32ff9ccf1c
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: threaded