iOS: Jpeg compression increasing the Size of image (Swift)

Viewed 244

Sample image to be compressed

I'm trying to attach a photo(UIImage) in my iOS application from the Photos app. The original size of the image is ~10MB but when I process it with

image?.jpegData(compressionQuality: 0.7)

the output size of the image becomes ~25MB.

Can anyone suggest as to what might be happening here?

0 Answers
Related