A specific image fails to load using UIImageView on iOS 16, but loads normally on systems below iOS 16.

A specific image fails to load properly using UIImageView on iOS 16 and later systems, but loads normally on iOS 15 and earlier versions. Similarly, on Mac computers, this image cannot be opened on MacOS 13 and later, whereas it opens without issue on MacOS 12 and earlier. I am curious about the reasons behind this differing behavior on both iPhone and Mac.

Answered by DTS Engineer in 826774022

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the FB number here once you do. If you post the bug number here I'll check the status next time I do a sweep of forums posts where I've suggested bug reports. Also, if you attach a sample to your bug I will try it and see if I can provide any recommendations to you.

Bug Reporting: How and Why? has tips on creating your bug report.

How does it fail to load? Is there an error? Can we see the code that's trying to load it?

We really cannot help you with such little detail. It's like telling us your car won't start but not telling us why.

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the FB number here once you do. If you post the bug number here I'll check the status next time I do a sweep of forums posts where I've suggested bug reports. Also, if you attach a sample to your bug I will try it and see if I can provide any recommendations to you.

Bug Reporting: How and Why? has tips on creating your bug report.

Hello, my Feedback Assistant reference number is: [FB16635557]. The returned content includes the [1.jpg] image, which fails to load on iOS 16 and above systems, and cannot be opened or previewed on MacOS 13 and above systems.

When I used the image address to load this image,Console print Print logs as follows: appleJPEGDecodeOpen:1316: *** ERROR: applejpeg_decode_open_file returned: 3 'APPLEJPEG_ERR_UNSUPPORTED' createImageAtIndex:1660: *** ERROR: createImageAtIndex[0] - 'JPEG' - failed to create image [-59] CGImageSourceCreateImageAtIndex:4499: *** ERROR: CGImageSourceCreateImageAtIndex[0] - 'JPEG' - failed to create image [-59] appleJPEGDecodeOpen:1316: *** ERROR: applejpeg_decode_open_file returned: 3 'APPLEJPEG_ERR_UNSUPPORTED'

Hi. Thanks for filing a bug report. I was able to reproduce the problem you have described here. Also, I am unable to open the .jpg file in your project in Preview or Safari, though, curiously, I can open it in GIMP. I sent an email over to engineering asking for their opinion. I'll let you know what I find out.

Can you provide more information about where this file is from or how it was created? It seems like there is a problem with the file. To get past this error please try re-saving with perhaps a different program. I expect that will resolve the issue.

With that said, thanks for filing a bug that includes a copy of the file so we can investigate.

A specific image fails to load using UIImageView on iOS 16, but loads normally on systems below iOS 16.
 
 
Q