[Webkit-unassigned] [Bug 54256] New: Improve the compression of Canvas's toDataURL function
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 10 16:05:40 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=54256
Summary: Improve the compression of Canvas's toDataURL function
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: Canvas
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: tabatkins at google.com
CC: mdelaney at apple.com
Canvas's toDataURL function has horrible PNG compression for simple images. For example, running the following page gets me a data url 2.8kb in size:
<!doctype html>
<script>
var x = document.createElement('canvas');
x.width = 500;
x.height = 500;
var y = x.getContext('2d');
y.fillRect(0,0,500,500);
alert(x.toDataURL().length);
</script>
Saving the generated image and running it through http://www.pngoptimizer.com/ gives me an equivalent image that is only 125 bytes in size. We should be able to generate images similar in size.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list