Summary: | [Gtk] toDataURL uses incorrect quality value when saving GdkPixbuf to buffer | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Zan Dobersek <zan> | ||||
Component: | Canvas | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | commit-queue, mdelaney7 | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 54458 | ||||||
Attachments: |
|
Description
Zan Dobersek
2011-03-07 07:35:57 PST
Created attachment 84944 [details] Put quality into an appropriate range. This patch multiplies quality variable, which is originally in range [0.0, 1.0] by 100.0 to ensure it is in the correct range of [0, 100], as seen in gdk_pixbuf_save function documentation[1]. [1] http://library.gnome.org/devel/gdk-pixbuf/2.22/gdk-pixbuf-file-saving.html#gdk-pixbuf-save Comment on attachment 84944 [details]
Put quality into an appropriate range.
Nice catch.
Comment on attachment 84944 [details] Put quality into an appropriate range. Clearing flags on attachment: 84944 Committed r80546: <http://trac.webkit.org/changeset/80546> All reviewed patches have been landed. Closing bug. |