I am using the following code to convert UIImage
to NSData
:
imgData = UIImageJPEGRepresentation(image, 0.75);
The code is working fine with iOS 12.4, but when I try with it with iOS 13.2.3, it returns nothing.
Any help would be greatly appreciated.
Thank you.