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
DefaultImageProcessorcould be used across.Declaration
Swift
public static let `default` = DefaultImageProcessor() -
Identifier of the processor.
Note
See documentation ofImageProcessorprotocol for more.Declaration
Swift
public let identifier = "" -
Initialize a
DefaultImageProcessorDeclaration
Swift
public init() -
Process an input
ImageProcessItemitem to an image for this processor.Note
See documentation of
ImageProcessorprotocol for more.Declaration
Swift
public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image?Parameters
itemInput item which will be processed by
selfoptionsOptions when processing the item.
Return Value
The processed image.
View on GitHub
Install in Dash
DefaultImageProcessor Structure Reference