title: Compress UIImage
body: <p>I need help resizing a UIImage.</p>
  
  <p>For example: I'm displaying a lot images in a UICollection View, but the size of those images is 2 to 4 MB. I need compress or resize those images.</p>
  
  <p>I found this: <a href="https://stackoverflow.com/questions/4394491/how-to-compress-resize-image-on-iphone-os-sdk-before-uploading-to-a-server/4469273#4469273">How to compress/resize image on iPhone OS SDK before uploading to a server?</a> but I don't understand how to implement it.</p>