Open atokuswanto opened 2 years ago
I had the same issue, but using OpenCV's CvVideoCamera for live video processing. Worked fine on iOS 15, failed on iOS 16 with the same message as you're getting.
In my case it was because I had only 3 channels in my image, instead of 4. So I added the alpha channel, and that got rid of the error.
I have the same problem since IOS 16 update, seems like a fix was done in the native library. For the moment I disabled webp with
SDWebImageManager.SharedManager.ImageDownloader.SetHttpHeaderValue("image/jpeg,image/png;q=0.8", "accept");
@aiemsal your fix was life saver. It works like a charm.
Environment
Code On iOS 16, some images couldn't be loaded from url.
imageView.SetImage(url)
Same code with same image works well on iOS 15.
Error CGImageCreate: invalid image byte order info for bitsPerPixel != 32 = 16384