<?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>222150</bug_id>
          
          <creation_ts>2021-02-18 17:57:22 -0800</creation_ts>
          <short_desc>Some JPEG 2000s fail to load in iOS 14.5</short_desc>
          <delta_ts>2021-03-11 10:24:19 -0800</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 14</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Portis">e</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>smoley</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1731133</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Portis">e</who>
    <bug_when>2021-02-18 17:57:22 -0800</bug_when>
    <thetext>Many JPEG 2000 images, which decoded and displayed fine in iOS 14.4, fail to load in iOS 14.5 betas.

I don&apos;t have access to a beta versions of Big Sur but I wouldn&apos;t be surprised if this affected MacOS too. I&apos;m testing with Simulator Version 12.5 (961). 

Steps to reproduce:

Try to load any of the following images:

(generated with OpenJPEG)
https://ericportis.com/etc/jp2_test_files/USA_Pro_Challenge/USA_Pro_Challenge.jp2
https://ericportis.com/etc/jp2_test_files/Snowman_snowman/Snowman_snowman.jp2
https://ericportis.com/etc/jp2_test_files/Zion_narrows/Zion_narrows.jp2

(generated with Cloudinary, which uses Kakadu)
http://o.img.rodeo/w_500/sample.jp2
http://o.img.rodeo/w_500/dogs/5.jp2
http://o.img.rodeo/w_1000,q_auto/dogs/7.jp2

Not all JP2s are affected. This image, exported from Preview.app on MacOS Big Sur, loads successfully:
https://ericportis.com/etc/dog-5.jp2

I am assuming this is the fault of an underlying system framework, and will be closed, as previous image decoding bugs in WebKit have been. I have also submitted FB9010730, about this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1731763</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-02-19 22:34:39 -0800</bug_when>
    <thetext>FWIW, I cannot reproduce this on an iPhone or a Mac. I don&apos;t have a working simulator to try at the moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1731795</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Portis">e</who>
    <bug_when>2021-02-20 09:04:01 -0800</bug_when>
    <thetext>Alexey Proskuryakov #1 what version of iOS and Mobile Safari are you attempting on?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733621</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-02-25 17:58:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/74770141&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1738352</commentid>
    <comment_count>4</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2021-03-10 21:24:02 -0800</bug_when>
    <thetext>(In reply to Eric Portis from comment #2)
&gt; Alexey Proskuryakov #1 what version of iOS and Mobile Safari are you
&gt; attempting on?

I could not reproduce this bug on iPhone 11 Pro Max with iOS 14.5 beta.
I could not reproduce this bug on iOS simulator Version 12.5 (961.1) and macOS Big Sur 11.3 Beta.

I also noticed that the first link &quot;https://ericportis.com/etc/jp2_test_files/USA_Pro_Challenge/USA_Pro_Challenge.jp2&quot; is currently broken. But I could see the rest of the images on the device and on the simulator.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1738360</commentid>
    <comment_count>5</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2021-03-10 22:48:24 -0800</bug_when>
    <thetext>Correction: the first picture &quot;https://ericportis.com/etc/jp2_test_files/USA_Pro_Challenge/USA_Pro_Challenge.jp2&quot; is not broken. But webkit-bug-importer imported it as &quot;https://ericportis.com/etc/jp2_test_files/USA_Pro_Challenge/USA_Pro_+Challenge.jp2&quot;. So I was not able to load it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1738514</commentid>
    <comment_count>6</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2021-03-11 10:20:06 -0800</bug_when>
    <thetext>This does not reproduce for me either on iPhone 12 mini with latest iOS 14.5 beta.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1738515</commentid>
    <comment_count>7</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2021-03-11 10:24:19 -0800</bug_when>
    <thetext>I also tested on latest macOS Big Sur 11.3 beta btw. All linked images loaded fine.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>