Bug 330585 - Dolphin preview of SVG file (done by ksvg2?) and Inkscape show different render result
Summary: Dolphin preview of SVG file (done by ksvg2?) and Inkscape show different rend...
Status: CONFIRMED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (show other bugs)
Version: 17.12.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 15:57 UTC by David Tonhofer
Modified: 2022-06-25 07:22 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (260.56 KB, image/png)
2014-01-30 15:58 UTC, David Tonhofer
Details
Bug example (27.27 KB, image/svg+xml)
2014-01-30 16:00 UTC, David Tonhofer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Tonhofer 2014-01-30 15:57:47 UTC
1) Created an SVG file with a "text" tag and two "tspan" tags inside:

   <text
       xml:space="preserve"
       style="font-size:20px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
       x="44.781368"
       y="69.659859"
       id="text5342"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan5344"
         x="44.781368"
         y="69.659859"
         style="font-size:32px">Data title goes here</tspan><tspan
         sodipodi:role="line"
         x="44.781368"
         y="97.698868"
         id="tspan5346">Data subtitle goes here</tspan></text>

2) The Dolphin preview screen shows the two text strings in a single line
3) Inkscape shows the texts one below the other

... not sure which is right,.

Reproducible: Always
Comment 1 David Tonhofer 2014-01-30 15:58:35 UTC
Created attachment 84900 [details]
Screenshot

Differences in text alignment
Comment 2 David Tonhofer 2014-01-30 16:00:22 UTC
Created attachment 84901 [details]
Bug example
Comment 3 Frank Reininghaus 2014-01-30 16:05:11 UTC
Thanks for the bug report. Please note that previews are not generated by Dolphin itself, but by an external process. These processes are controlled by a PreviewJob from the KIO part of kdelibs. Some of the thumbnailers for different formats are part of kde-runtime. I'm not sure if this is also the case for the SVG thumbnailer.

Considering that

(In reply to comment #0)
> ... not sure which is right,.

and that your KDE version is pretty outdated, I suggest that you find out "which is right" and re-test with KDE SC 4.12.x. We can then re-assign this report to kio/thumbnail or another suitable product. Thanks.
Comment 4 David Tonhofer 2014-01-30 16:22:29 UTC
Thanks.

This is going to take a bit as I have to make space and time to upgrade to the latest Fedora. I will report back then.
Comment 5 Julian Steinmann 2018-03-31 14:43:27 UTC
I can still reproduce this bug with Dolphin 17.12.3 & KDE Plasma 5.12.3. I think this is probably an issue with the svg thumbnailer (ksvg2?), as both GIMP and Inkscape render it differently. We should reassign this bug to the respective product.