<?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>241904</bug_id>
          
          <creation_ts>2022-06-22 22:40:40 -0700</creation_ts>
          <short_desc>[Cocoa] Support AVIF images for macOS Ventura and iOS 16</short_desc>
          <delta_ts>2022-08-25 11:31:09 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=244103</see_also>
          <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>
          <dependson>244324</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Said Abou-Hallawa">sabouhallawa</assigned_to>
          <cc>mmaxfield</cc>
    
    <cc>njar09</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1877576</commentid>
    <comment_count>0</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2022-06-22 22:40:40 -0700</bug_when>
    <thetext>The system frameworks will be used to render the AVIF images on macOS Ventura and iOS 16.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877577</commentid>
    <comment_count>1</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2022-06-22 22:41:05 -0700</bug_when>
    <thetext>rdar://95742091</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877584</commentid>
    <comment_count>2</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2022-06-22 23:23:23 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/1717</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878342</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-06-25 01:32:07 -0700</bug_when>
    <thetext>Committed 251850@main (59d774a32243): &lt;https://commits.webkit.org/251850@main&gt;

Reviewed commits have been landed. Closing PR #1717 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889900</commentid>
    <comment_count>4</comment_count>
    <who name="Kaifeng Jin">jkfzero</who>
    <bug_when>2022-08-08 20:01:38 -0700</bug_when>
    <thetext>I find some avif image in base64 format still can&apos;t be render in Safari 16.Here is the image src link https://github.com/kamalendugarai/webp-avif-browsers-support-detection/blob/master/src/index.js#L11
Browser version 18614.1.19.1.5
This happened in both Mac OS 13 and iOS 16.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892300</commentid>
    <comment_count>5</comment_count>
      <attachid>461723</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2022-08-18 14:19:55 -0700</bug_when>
    <thetext>Created attachment 461723
red-square-avif

I extracted the data URL from the linked JS file. I decoded the base64 into a binary file (attached). When opening it in Preview, a red rectangle is displayed but the Inspector tool shows that it is a HEIF image. And we do not support HEIF images in WebKit.

There might be a bug in the image frameworks such that they erroneously return public.heif for this image instead of returning public.avif.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892302</commentid>
    <comment_count>6</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2022-08-18 14:26:35 -0700</bug_when>
    <thetext>Let&apos;s migrate this to https://bugs.webkit.org/show_bug.cgi?id=244103.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>461723</attachid>
            <date>2022-08-18 14:19:55 -0700</date>
            <delta_ts>2022-08-18 14:19:55 -0700</delta_ts>
            <desc>red-square-avif</desc>
            <filename>red-sequare.avif</filename>
            <type>image/avif</type>
            <size>307</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">AAAAHGZ0eXBtaWYxAAAAAG1pZjFhdmlmbWlhZgAAAPFtZXRhAAAAAAAAACFoZGxyAAAAAAAAAABw
aWN0AAAAAAAAAAAAAAAAAAAAAA5waXRtAAAAAAABAAAAHmlsb2MAAAAABEAAAQABAAAAAAEVAAEA
AAAeAAAAKGlpbmYAAAAAAAEAAAAaaW5mZQIAAAAAAQAAYXYwMUltYWdlAAAAAHBpcHJwAAAAUWlw
Y28AAAAUaXNwZQAAAAAAAAABAAAAAQAAABBwYXNwAAAAAQAAAAEAAAAVYXYxQ4EgAAAKBzgABpAQ
0AIAAAAQcGl4aQAAAAADCAgIAAAAF2lwbWEAAAAAAAAAAQABBAECg4QAAAAmbWRhdAoHOAAGkBDQ
AjITFkAAAEgAAAB5TNw9UxdXU6F6oA==
</data>

          </attachment>
      

    </bug>

</bugzilla>