DefaultImageProcessor
public struct DefaultImageProcessor: ImageProcessor
The default processor. It convert the input data to a valid image.
Images of .PNG, .JPEG and .GIF format are supported.
If an image is given, DefaultImageProcessor
will do nothing on it and just return that image.
-
A default
DefaultImageProcessor
could be used across.Declaration
Swift
public static let `default` = DefaultImageProcessor()
-
Identifier of the processor.
Note
See documentation ofImageProcessor
protocol for more.Declaration
Swift
public let identifier = ""
-
Initialize a
DefaultImageProcessor
Declaration
Swift
public init()
-
Process an input
ImageProcessItem
item to an image for this processor.Note
See documentation of
ImageProcessor
protocol for more.Declaration
Swift
public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image?
Parameters
item
Input item which will be processed by
self
options
Options when processing the item.
Return Value
The processed image.