[Webkit-unassigned] [Bug 220330] [ Big Sur ] fast/images/webp-as-image.html is failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 8 16:05:37 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=220330

Szymon Witamborski <szymon.witamborski at bibo.com.ph> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |szymon.witamborski at bibo.com
                   |                            |.ph

--- Comment #4 from Szymon Witamborski <szymon.witamborski at bibo.com.ph> ---
Created attachment 419649

  --> https://bugs.webkit.org/attachment.cgi?id=419649&action=review

Script that searches for last good and first bad webp image that fails to be decoded on Big Sur

We found out that Safari was failing to load some lossless webp images, most of the time they were simple single or two-colour images. It was also failing only from a certain size but different depending on content.

When trying to open these images with Preview, it was also failing so that'd point for the bug to be system-level.

I wrote a simple script to generate images with ImageMagick and check if they open with sips -i (normally used to generate thumbnails). This script also binary-searches for last good and first bad images and outputs an HTML file to be used in a browser.

>From some manual testing done first it looked like breaking point was independent of aspect ratio but rather only depends on final number of pixels in the image, hence the script generates a 1px-high images and only width is variable. 

Breaking points depend on the actual colour value used. The script only uses some simple examples but could be easily tweaked to test other values (hex values work too). For some it'll go beyond 16383 which is beyond max edge size of webp image so it might be necessary to adjust height of generated images.

Here's a live version on codepen of the generated page:
https://codepen.io/brainshave/pen/RwoaXow

And all edge files in a GH gist:
https://gist.github.com/brainshave/04ae8279a4b16e72897ebfb5b382bbd1

Tested on macOS 11.1 and 11.2 on both Safari 14.0.3 and Safari TP 119. All other browsers process these images without issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210209/f347f165/attachment-0001.htm>


More information about the webkit-unassigned mailing list