public struct ImageIO: ImageEncoding
An Image I/O based encoder.
Image I/O is a system framework that allows applications to read and write most image file formats. This framework offers high efficiency, color management, and access to image metadata.
A namespace with all available encoders.
An image encoder.
public let compressionRatio: Float
public static func isSupported(type: ImageType) -> Bool
true if the encoding is available for the given format on
the current hardware. Some of the most recent formats might not be
available so its best to check before using them.
public func encode(_ image: PlatformImage) -> Data?