Bug 235316

Summary: Valid WebP image does not display in Safari
Product: WebKit Reporter: Paul Neave <paul.neave>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer, xidorn-webkit
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: All   
OS: All   
Attachments:
Description Flags
Sample WebP image
none
Another WebP image none

Description Paul Neave 2022-01-18 04:03:44 PST
Created attachment 449378 [details]
Sample WebP image

The attached WebP image does not display correctly in Safari. It is a simple transparent image with a horizontal line. It loads and displays correctly in Chrome and Firefox. This affects Mac and iOS Safari browsers.
Comment 1 Radar WebKit Bug Importer 2022-01-19 13:00:09 PST
<rdar://problem/87786954>
Comment 2 Sam Sneddon [:gsnedders] 2022-01-21 08:28:03 PST
This isn't a WebKit bug, but rather in ImageIO, given opening it in Preview equally causes an error.
Comment 3 Paul Neave 2022-01-24 06:32:25 PST
Thanks Sam. Is this Apple's ImageIO? https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/ImageIOGuide/imageio_intro/ikpg_intro.html If so, can a bug report be filed there?
Comment 4 Paul Neave 2022-08-10 03:44:44 PDT
Created attachment 461525 [details]
Another WebP image

Here’s another example of a WebP image that fails to load in Safari and Mac Preview. This bug only seems to affect very simple and/or highly compressed images such as this one.
Comment 5 Sam Sneddon [:gsnedders] 2022-08-10 15:28:43 PDT
(In reply to Paul Neave from comment #3)
> Thanks Sam. Is this Apple's ImageIO?
> https://developer.apple.com/library/archive/documentation/GraphicsImaging/
> Conceptual/ImageIOGuide/imageio_intro/ikpg_intro.html If so, can a bug
> report be filed there?

Ah, sorry, I missed this previously. See https://feedbackassistant.apple.com, though I did forward the original bug there. (And it does now work on macOS 13 beta 5.)

(In reply to Paul Neave from comment #4)
> Created attachment 461525 [details]
> Another WebP image
> 
> Here’s another example of a WebP image that fails to load in Safari and Mac
> Preview. This bug only seems to affect very simple and/or highly compressed
> images such as this one.

That also works on macOS 13 beta 5.
Comment 6 Paul Neave 2022-08-11 05:56:33 PDT
That's great, thanks Sam. Hopefully this fix will come to iOS 16 too.
Comment 7 Sam Sneddon [:gsnedders] 2022-08-11 07:18:51 PDT
(In reply to Paul Neave from comment #6)
> That's great, thanks Sam. Hopefully this fix will come to iOS 16 too.

It should also work on iOS 16 beta 5 (it's, uh, just easier to verify on the computer I'm typing on); there shouldn't be any difference here.
Comment 8 Alexey Proskuryakov 2022-08-15 09:04:56 PDT
*** Bug 243930 has been marked as a duplicate of this bug. ***
Comment 9 Xidorn Quan 2022-08-15 14:56:57 PDT
Is there any chance that the fix would be backported to earlier versions?