Bug 432330 - Incorrect rendering of SVG
Summary: Incorrect rendering of SVG
Status: RESOLVED DUPLICATE of bug 336436
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 20.12.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
Depends on:
Reported: 2021-01-31 04:25 UTC by physkets
Modified: 2021-02-04 08:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:

An SVG with a zoomed-in portion displayed separately. (2.12 MB, image/svg+xml)
2021-01-31 04:26 UTC, physkets

Note You need to log in before you can comment on or make changes to this bug.
Description physkets 2021-01-31 04:25:26 UTC

An SVG image with a 'zoomed-in' portion displayed in a separate patch does not render correctly. The new window should show the zoomed-in version, but only inside the window. Gwenview displays the zoomed-in structures even outside it. Other viewers display this correctly (eg. Firefox).


Attached is such an image.

Operating System: Arch Linux
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.11-arch1-1
OS Type: 64-bit
Processors: 16 × AMD Ryzen 7 PRO 4750U with Radeon Graphics
Memory: 14.9 GiB of RAM
Graphics Processor: AMD RENOIR


This SVG was generated using Matplotlib.
Comment 1 physkets 2021-01-31 04:26:34 UTC
Created attachment 135319 [details]
An SVG with a zoomed-in portion displayed separately.
Comment 2 Madhav Kanbur 2021-02-01 09:20:55 UTC
This appears to be an upstream bug in QT itself. I've filed a bug report here - https://bugreports.qt.io/browse/QTBUG-90803
Comment 3 Madhav Kanbur 2021-02-04 08:16:57 UTC
I'm not too hopeful of things getting fixed upstream since Qt Svg doesn't have full svg support and should be replaced by a better renderer. QT themselves recommend using QtWebKit (now superseded by QtWebEngine) - https://bugreports.qt.io/browse/QTBUG-12588?focusedCommentId=123082&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123082

I'm gonna mark this as a duplicate and try porting the code to QtWebEngine.
Comment 4 Madhav Kanbur 2021-02-04 08:17:29 UTC

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