Kingfisher Documentation

Structure Default​Image​Processor

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.

%149 DefaultImageProcessor DefaultImageProcessor ImageProcessor ImageProcessor DefaultImageProcessor->ImageProcessor

Conforms To

ImageProcessor

An ImageProcessor would be used to convert some downloaded data to an image.

Initializers

init()

public init()  

Creates a DefaultImageProcessor. Use DefaultImageProcessor.default to get an instance, if you do not have a good reason to create your own DefaultImageProcessor.

Properties

`default`

public static let `default`  

A default DefaultImageProcessor could be used across.

identifier

public let identifier = ""

Identifier of the processor.

Methods

process(item:​options:​)

public func process(item: ImageProcessItem, options: KingfisherParsedOptionsInfo) -> KFCrossPlatformImage?  

Processes the input ImageProcessItem with this processor.

Parameters

item Image​Process​Item

Input item which will be processed by self.

options Kingfisher​Parsed​Options​Info

Options when processing the item.

Returns

The processed image.