Bug 74872 - [Qt] QtWebKit scales compressed SVG (SVGZ) files as if they were raster images
Summary: [Qt] QtWebKit scales compressed SVG (SVGZ) files as if they were raster images
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2011-12-19 10:54 PST by Bartosz Brachaczek
Modified: 2014-02-03 03:19 PST (History)
1 user (show)

See Also:


Attachments
testcase.zip (3.78 KB, application/zip)
2011-12-19 10:54 PST, Bartosz Brachaczek
no flags Details
testcase-screenshot.png (25.83 KB, image/png)
2011-12-19 10:55 PST, Bartosz Brachaczek
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bartosz Brachaczek 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.
Comment 1 Bartosz Brachaczek 2011-12-19 10:55:36 PST
Created attachment 119887 [details]
testcase-screenshot.png
Comment 2 Bartosz Brachaczek 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.
Comment 3 Allan Sandfeld Jensen 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.
Comment 4 Allan Sandfeld Jensen 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.
Comment 5 Jocelyn Turcotte 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.