Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
DreamPiggy edited this pageFeb 20, 2025 ·30 revisions

Coder Plugin

SDWebImage supports custom image coder plugin. Which can easily extern image format support when using SDWebImage's core feature.

Our core lib, only use the Apple System build-in codec. Which support the common image format, like JPEG/PNG/GIF/BMP/HEIF. But you can use any of your preferred image formats by using the correct image coder plugins.

You can check some public coder plugin here for image format which is not available from SDWebImage's core repo. SeeCustom Coder for more detailed usage.

SDWebImage organization maintained

FormatRepoFormat CodeDecodeEncodeAnimationProgressiveThumbnail
WebPSDWebImageWebPCoder.webPYYYYY (from v0.4.0)
APNGSDWebImageAPNGCoder (Deprecated, 5.x built-in plugin).PNGYYYYN
GIFSDWebImageFLPlugin (Deprecated, use FLAnimatedImage).GIFYYNNN
HEIFSDWebImageHEIFCoder.HEIFYYNNY (from v0.7.0)
BPGSDWebImageBPGCoder.BPG = 11YY (from v0.4)YNN
SVG-NativeSDWebImageSVGNativeCoder.SVGYNNNY (Bitmap)
SVGSDWebImageSVGCoder.SVGYYNNY (Vector from v1.4.0)
SVGSDWebImageSVGKitPlugin (Deprecated, use SVGKit).SVGYYNNY (Vector from v1.1.0)
PDFSDWebImagePDFCoder.PDFYY (from v0.3)NNY (Vector from v0.6.0)
FLIFSDWebImageFLIFCoder.FLIF = 14YYYYN
AVIFSDWebImageAVIFCoder.AVIF = 15YY (from v0.2)Y (from v0.9.0)NN
LottieSDWebImageLottieCoder.lottie = 16YNYNY (Bitmap)
LottieSDWebImageLottiePlugin.lottie = 16YNYNN (Vector)
JPEG-XLSDWebImageJPEGXLCoder.jpegxl = 17YY (from v0.2)YNY

Community contribution (Welcome !)

FormatRepoFormat CodeDecodeEncodeAnimationVector

For Coder Plugin Developers

If your custom coder add new image format support, which is not listed in SDWebImage built-in define ofSDImageFormat, you can define it and update the format code here. To avoid the format code conflict with others. The custom minimum format code should be larger than10, to keep future reserved format used by SDWebImage core repo.

  • Objective-C
staticconst SDImageFormat SDImageFormatBPG =11;
  • Swift
extensionSDImageFormat{publicstaticletBPG:SDImageFormat=SDImageFormat(rawValue:11)}

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp