ios17 beta UIImage encoding error

In iOS 17 beta3 and later versions, it has been observed that encoding using UIImagePNGRepresentation, manually using CGImageDestinationFinalize for encoding, or using the new UIImageHEICRepresentation, all result in color shifting issues for the corresponding images. The original data can be downloaded from https://mdn.alipayobjects.com/promo_creative/afts/img/A*RxJIQ60ntZMAAAAAAAAAAAAAAVR1AQ/original. Could you please help investigate the cause of this issue?

ios17 beta UIImage encoding error
 
 
Q