Bug 67042 - SVG thumbnails don't honour the wanted size
Summary: SVG thumbnails don't honour the wanted size
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ksvg
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Nikolas Zimmermann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-02 12:32 UTC by Dirk Schoenberger
Modified: 2011-10-17 21:06 UTC (History)
2 users (show)

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


Attachments
Sample SVG file which is displayed too small. (9.87 KB, image/svg+xml)
2005-05-17 15:23 UTC, Jakob Petsovits
Details
Screenshot of svg vs. png in konqueror (110.62 KB, image/png)
2007-08-16 15:53 UTC, Nicolas Bigaouette
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schoenberger 2003-11-02 12:32:36 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.2 
OS:          Linux

there should be the possibility to adapt the "wanted" size of a SVG document as created by the KSVG preview generator (SVGCreator in ksvg/plugins) to the document size specified by the SVG document.

SVG documents (may?) contain information about their bounding box and their zooming behaviour.
The real bounding box and the viewed bounding box should be 
syncronized (perhaps by applying the proper scale and translate operations to the KSVGCanvas?)

In the current behaviour the document is rendered unscaled in the upper left cornder of the preview.
Comment 1 Dirk Schoenberger 2003-12-07 12:14:50 UTC
I have working prototype which implements this functionality.

Unfortunately KSVG's SVGCreator is not called anymore for thumbnail creation
Comment 2 Jakob Petsovits 2005-05-17 15:21:11 UTC
I don't know which KDE version this report is referring to, but in KDE 3.4 there are still sizing problems with thumbnail creation. The thumbnails have proper width/height ratio, but don't scale up or down to the thumbnail size. I'll attach a sample icon (out of the Lila icon set), which only takes up half of the thumbnail size.
Comment 3 Jakob Petsovits 2005-05-17 15:23:40 UTC
Created attachment 11071 [details]
Sample SVG file which is displayed too small.
Comment 4 Nicolas Bigaouette 2007-08-16 15:51:07 UTC
Still present in 3.5.7! This is bad since SVG _should_ be scalable. How come other graphics are resized correctly but not svgs???
I'm attaching a screenshot of the problem.
Comment 5 Nicolas Bigaouette 2007-08-16 15:53:40 UTC
Created attachment 21406 [details]
Screenshot of svg vs. png in konqueror

The 2 files shown in konqueror are the same file, in svg and in png (png
converted from svg with inkscape). The svg should thumbnailed like the png is.
Comment 6 Christoph Feck 2011-10-17 21:06:28 UTC
This component has been replaced with the QtSvg based "svgpart" in KDE 4. If
this issue still needs to be addressed, please add a comment.