I am trying to compress an image using following method
jpegData(compressionQuality:)
In this case image got compressed but the resolution of an image also got changed. But i actually want only image will compress without changing the resolution. Please suggest the possible solutions.