Skip to content

iOS image resize/crop

Platform Language License

Overview

  • Manual drag & drop the class.
  • Swift 5.0 above.
  • Xcode 11 above.
  • Resize/Crop the image.
  • You can mention Width & Height of the image.
image.resize(to: CGSize(width: 200, height: 200))

In many cases you need to upload the image to backend with same quality with low dimension you can use the above class and mention the sizes.

Download the file here

UIImage+Resize.swift

Github

License

UIImage+Resize is distributed under the MIT license .


Let's grow together 🌱

Cheers 🍻