UIImageJPEGRepresentation encoded image included Apple Generic RGB profile by default. But Flutter doesn't decode them with ICC profile, and the result may have slightly color shifted.
I don't find any documented way to create JPEG on iOS without embedded ICC profile. But I found that using Image I/O framework with OptimizeColorForSharing=True will not include Apple Generic RGB profile. So Flutter can display them correctly.
This pull request is using Image I/O framework to encode JPEG on iOS.
UIImageJPEGRepresentation
encoded image included Apple Generic RGB profile by default. But Flutter doesn't decode them with ICC profile, and the result may have slightly color shifted.I don't find any documented way to create JPEG on iOS without embedded ICC profile. But I found that using Image I/O framework with OptimizeColorForSharing=True will not include Apple Generic RGB profile. So Flutter can display them correctly.
This pull request is using Image I/O framework to encode JPEG on iOS.