I have an app and I need to compress images to max 10mb, I'm currently using:
var imageData = UIImageJPEGRepresentation(thePhoto2.image!, 0.9)
but it would be nice to get all my images in optimal quality.
I have an app and I need to compress images to max 10mb, I'm currently using:
var imageData = UIImageJPEGRepresentation(thePhoto2.image!, 0.9)
but it would be nice to get all my images in optimal quality.