JPGQuality
public enum JPGQuality
Quality options for JPG images to be used when specifying .jpg
as the desired image format.
Example usage
let imageOptions = [.formatAs(.jpg(withQuality: .asPercent(50)))]
-
Don’t specify any quality for the JPG image.
Declaration
Swift
case unspecified
-
Specify the JPG quality as a percentage. Valid ranges are 0-100 (inclusive).
Declaration
Swift
case asPercent(UInt)
-
Specify that the API should return a progressive JPG. The progressive JPEG format stores multiple passes of an image in progressively higher detail.
Declaration
Swift
case progressive