DefaultImageProcessor
public struct DefaultImageProcessor : ImageProcessor
The default processor. It converts the input data to a valid image.
Images of .PNG, .JPEG and .GIF format are supported.
If an image item is given as .image
case, DefaultImageProcessor
will
do nothing on it and return the associated 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: String
-
Creates a
DefaultImageProcessor
. UseDefaultImageProcessor.default
to get an instance, if you do not have a good reason to create your ownDefaultImageProcessor
.Declaration
Swift
public init()
-
Processes the input
ImageProcessItem
with this processor.Note
See documentation of
ImageProcessor
protocol for more.Declaration
Swift
public func process(item: ImageProcessItem, options: KingfisherParsedOptionsInfo) -> Image?
Parameters
item
Input item which will be processed by
self
.options
Options when processing the item.
Return Value
The processed image.