Bug 222294

Summary: Single color webp images not rendering
Product: WebKit Reporter: Lokesh Dhakar <lokesh.dhakar>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: ap, sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: iPhone / iPad   
OS: iOS 14   
Attachments:
Description Flags
Image showing webp single and double color imgs not rendering in Safari none

Lokesh Dhakar
Reported 2021-02-22 16:08:05 PST
Created attachment 421256 [details] Image showing webp single and double color imgs not rendering in Safari Some low color WebP images are not rendering. I have not narrowed down all the scenarios where the issue arises, but the two examples of the issue I have been able to recreate are with webp images that are single or double color (I just tested two horizontal color blocks stacked). The images will not render in Mac Safari or iOS Safari. They render correctly on other platforms (I tested Mac Chrome and Android). I have created a demo of the issue in a CodePen: https://codepen.io/lokesh/pen/VwmMONr
Attachments
Image showing webp single and double color imgs not rendering in Safari (427.11 KB, image/png)
2021-02-22 16:08 PST, Lokesh Dhakar
no flags
Alexey Proskuryakov
Comment 1 2021-02-23 10:28:45 PST
I cannot reproduce this. What version of iOS and macOS are you seeing this with? Can you try the latest beta? In any case, this is almost certainly an issue in image decoding libraries below WebKit, and as such, it's better to report via https://feedbackassistant.apple.com for Apple engineers to take a look. One way to confirm is to save the image and open it in Preview.app on a Mac. If tat fails too, that's definitely an underlying issue.
Radar WebKit Bug Importer
Comment 2 2021-03-01 16:09:13 PST
Said Abou-Hallawa
Comment 3 2021-03-02 12:08:32 PST
I can't reproduce this bug either on macOS Big Sur or iOS 14.
Note You need to log in before you can comment on or make changes to this bug.