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.
use this extension to compress the image, i have been using this extension from a long time, try it if it does not affect the resolution.