RESOLVED INVALID 74872
[Qt] QtWebKit scales compressed SVG (SVGZ) files as if they were raster images
https://bugs.webkit.org/show_bug.cgi?id=74872
Summary [Qt] QtWebKit scales compressed SVG (SVGZ) files as if they were raster images
Bartosz Brachaczek
Reported 2011-12-19 10:54:34 PST
Created attachment 119885 [details] testcase.zip QtWebkit (tried with 2.0 and 2.2) scales compressed SVG (SVGZ) files as if they were raster images, while it does nicely scale uncompressed SVG files. You can see it easily when setting zoom factor to 2.0 for example. Attaching a simple testcase and screenshot from it. Originally I experienced this problem in a bit different way: it looked like a compressed SVG filed was rendered in its native size and it was then scaled like a raster image, leading to jagged image even with zoom factor 1.0. You can see it here: http://www.kadu.im/redmine/issues/2281. Unfortunately it's in Polish but I translated the most relevant comments to English there.
Attachments
testcase.zip (3.78 KB, application/zip)
2011-12-19 10:54 PST, Bartosz Brachaczek
no flags
testcase-screenshot.png (25.83 KB, image/png)
2011-12-19 10:55 PST, Bartosz Brachaczek
no flags
Bartosz Brachaczek
Comment 1 2011-12-19 10:55:36 PST
Created attachment 119887 [details] testcase-screenshot.png
Bartosz Brachaczek
Comment 2 2011-12-19 10:58:15 PST
Forgot to say that it might be related to bug 5246. My totally wild guess is that maybe WebKit fails to load that compressed SVG, passes it to Qt which returns a raster image with that SVG file rendered.
Allan Sandfeld Jensen
Comment 3 2012-12-11 09:34:17 PST
(In reply to comment #2) > Forgot to say that it might be related to bug 5246. My totally wild guess is that maybe WebKit fails to load that compressed SVG, passes it to Qt which returns a raster image with that SVG file rendered. Good guess. Qt supports SVGZ but WebKit really doesn't, bug #5246 . The only reason svgz works over the internet is due a common hack where the server lies about the content-type and encoding so it looks like a normal SVG that was only gzip encoded for transport. We have two separate issues here. 1. We do not handle the SVG in WebKit like we could 2. We seem to support scaling in QImageIO plugins.
Allan Sandfeld Jensen
Comment 4 2012-12-11 09:35:23 PST
(In reply to comment #3) > 2. We seem to support scaling in QImageIO plugins. We do NOT seem to support scaling in QImageIO plugins.
Jocelyn Turcotte
Comment 5 2014-02-03 03:19:28 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.
Note You need to log in before you can comment on or make changes to this bug.