iosuiimagensimageuiimagejpegrepresentation

When using UIImageJPEGRepresentation what number retains full resolution?


Can someone please explain the scale for me (0 to 1)? Which is the best quality/least, and how does that affect file size?


Solution

  • About scale

    The quality of the resulting JPEG image, expressed as a value from 0.0 to 1.0. The value 0.0 represents the maximum compression (or lowest quality) while the value 1.0 represents the least compression (or best quality).