Bug 274827

Summary: REGRESSION(2.45.1/2.45.2): [GTK] All PNG images look jagged
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: WebKitGTKAssignee: Patrick Griffis <pgriffis>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
The logo
none
Before (2.44)
none
After (2.45)
none
Second image
none
Screenshot of second image displayed in Newsflash none

Description Michael Catanzaro 2024-05-29 05:22:19 PDT
Created attachment 471535 [details]
The logo

The attached PNG image is used by Red Hat for its Google account logo. Since 2.45.1 or 2.45.2, the logo looks bad when rendered in the upper right hand corner of Google domains like calendar.google.com or mail.google.com. I'm attaching the image itself, a Before screenshot showing that it's rendered fine in 2.44, and an After screenshot showing it's rendered badly in 2.45.

It might be related to the switch to skia.

Note: the image is named "logo.gif" in the grand web tradition of using misleading file extensions for images. It's a PNG.
Comment 1 Michael Catanzaro 2024-05-29 05:23:10 PDT
Created attachment 471536 [details]
Before (2.44)
Comment 2 Michael Catanzaro 2024-05-29 05:23:22 PDT
Created attachment 471537 [details]
After (2.45)
Comment 3 Michael Catanzaro 2024-05-29 06:22:48 PDT
Created attachment 471539 [details]
Second image

Here's a second image. This one is only conditionally broken. It displays fine when loaded in Epiphany on https://www.vox.com/money/352116/whats-really-happening-to-grocery-prices-right-now. But if you display it in Newsflash, it looks bad. It's strange that the result is different in the two applications. My first guess was that it displays badly at small sizes, but that doesn't seem to be correct; it looks fine at small sizes in Epiphany, and still looks bad at bigger sizes in Newsflash. Newsflash must be doing something differently.

(Newsflash is supposed to be using WebKitGTK 2.44.2, but it's currently using 2.45.2 because I messed up and upgraded the GNOME 46 runtime to 2.45.2 by mistake.)
Comment 4 Michael Catanzaro 2024-05-29 06:23:29 PDT
Created attachment 471540 [details]
Screenshot of second image displayed in Newsflash
Comment 5 Michael Catanzaro 2024-05-29 10:39:42 PDT
Finally I've noticed this bug in the reddit.com logo. That's by far the easiest reproducer. Just go to reddit.com and note that the logo looks bad.
Comment 6 Michael Catanzaro 2024-05-29 12:43:08 PDT
Another easy reproducer: https://discourse.gnome.org/
Comment 7 Michael Catanzaro 2024-07-13 07:54:34 PDT
Seems like all images on all websites are affected by this issue.
Comment 8 Patrick Griffis 2024-08-08 08:53:31 PDT
Pull request: https://github.com/WebKit/WebKit/pull/31895
Comment 9 EWS 2024-08-20 08:34:56 PDT
Committed 282492@main (1efcb4f3b8fb): <https://commits.webkit.org/282492@main>

Reviewed commits have been landed. Closing PR #31895 and removing active labels.