<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>235316</bug_id>
          
          <creation_ts>2022-01-18 04:03:44 -0800</creation_ts>
          <short_desc>Valid WebP image does not display in Safari</short_desc>
          <delta_ts>2022-08-15 14:56:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Images</component>
          <version>Safari 15</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Neave">paul.neave</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>xidorn-webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1831654</commentid>
    <comment_count>0</comment_count>
      <attachid>449378</attachid>
    <who name="Paul Neave">paul.neave</who>
    <bug_when>2022-01-18 04:03:44 -0800</bug_when>
    <thetext>Created attachment 449378
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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1832188</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-01-19 13:00:09 -0800</bug_when>
    <thetext>&lt;rdar://problem/87786954&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1832772</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-01-21 08:28:03 -0800</bug_when>
    <thetext>This isn&apos;t a WebKit bug, but rather in ImageIO, given opening it in Preview equally causes an error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833284</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Neave">paul.neave</who>
    <bug_when>2022-01-24 06:32:25 -0800</bug_when>
    <thetext>Thanks Sam. Is this Apple&apos;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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890246</commentid>
    <comment_count>4</comment_count>
      <attachid>461525</attachid>
    <who name="Paul Neave">paul.neave</who>
    <bug_when>2022-08-10 03:44:44 -0700</bug_when>
    <thetext>Created attachment 461525
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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890421</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-08-10 15:28:43 -0700</bug_when>
    <thetext>
(In reply to Paul Neave from comment #3)
&gt; Thanks Sam. Is this Apple&apos;s ImageIO?
&gt; https://developer.apple.com/library/archive/documentation/GraphicsImaging/
&gt; Conceptual/ImageIOGuide/imageio_intro/ikpg_intro.html If so, can a bug
&gt; 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)
&gt; Created attachment 461525 [details]
&gt; Another WebP image
&gt; 
&gt; Here’s another example of a WebP image that fails to load in Safari and Mac
&gt; Preview. This bug only seems to affect very simple and/or highly compressed
&gt; images such as this one.

That also works on macOS 13 beta 5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890563</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Neave">paul.neave</who>
    <bug_when>2022-08-11 05:56:33 -0700</bug_when>
    <thetext>That&apos;s great, thanks Sam. Hopefully this fix will come to iOS 16 too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890574</commentid>
    <comment_count>7</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-08-11 07:18:51 -0700</bug_when>
    <thetext>(In reply to Paul Neave from comment #6)
&gt; That&apos;s great, thanks Sam. Hopefully this fix will come to iOS 16 too.

It should also work on iOS 16 beta 5 (it&apos;s, uh, just easier to verify on the computer I&apos;m typing on); there shouldn&apos;t be any difference here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891337</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-08-15 09:04:56 -0700</bug_when>
    <thetext>*** Bug 243930 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891451</commentid>
    <comment_count>9</comment_count>
    <who name="Xidorn Quan">xidorn-webkit</who>
    <bug_when>2022-08-15 14:56:57 -0700</bug_when>
    <thetext>Is there any chance that the fix would be backported to earlier versions?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>449378</attachid>
            <date>2022-01-18 04:03:44 -0800</date>
            <delta_ts>2022-01-18 04:03:44 -0800</delta_ts>
            <desc>Sample WebP image</desc>
            <filename>bug.webp</filename>
            <type>image/webp</type>
            <size>84</size>
            <attacher name="Paul Neave">paul.neave</attacher>
            
              <data encoding="base64">UklGRkwAAABXRUJQVlA4TD8AAAAv/8F/EBcw//M//0KChOx4Nwc8DDNt25RkSY7rtGtyRP8z/Oc/
//nPf/7zn//85z//+f8Ku37O7/rwn//8/4AA
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>461525</attachid>
            <date>2022-08-10 03:44:44 -0700</date>
            <delta_ts>2022-08-10 03:44:44 -0700</delta_ts>
            <desc>Another WebP image</desc>
            <filename>bug.webp</filename>
            <type>image/webp</type>
            <size>54</size>
            <attacher name="Paul Neave">paul.neave</attacher>
            
              <data encoding="base64">UklGRi4AAABXRUJQVlA4TCIAAAAv/8F/AAfQ//73v/8BgUCyv/cMRfQ/4z//+c9//vOf//wf
</data>

          </attachment>
      

    </bug>

</bugzilla>