diff --git a/SDWebImage/SDWebImageImageIOCoder.h b/SDWebImage/SDWebImageImageIOCoder.h index 7b439608..524d9bbe 100644 --- a/SDWebImage/SDWebImageImageIOCoder.h +++ b/SDWebImage/SDWebImageImageIOCoder.h @@ -10,9 +10,15 @@ #import "SDWebImageCoder.h" /** - Built in coder that supports PNG, JPEG, TIFF, includes support for progressive decoding + Built in coder that supports PNG, JPEG, TIFF, includes support for progressive decoding. + + GIF Also supports static GIF (meaning will only handle the 1st frame). For a full GIF support, we recommend `FLAnimatedImage` or our less performant `SDWebImageGIFCoder` + + HEIC + This coder also supports HEIC format because ImageIO supports it natively. But it depends on the system capabilities, so it won't work on all devices. + Hardware works if: (iOS 11 || macOS 10.13) && (isMac || isIPhoneAndA10FusionChipAbove) && (!Simulator) */ @interface SDWebImageImageIOCoder : NSObject diff --git a/SDWebImage/SDWebImageImageIOCoder.m b/SDWebImage/SDWebImageImageIOCoder.m index f04c2561..7d565648 100644 --- a/SDWebImage/SDWebImageImageIOCoder.m +++ b/SDWebImage/SDWebImageImageIOCoder.m @@ -472,8 +472,7 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over return YES; } -+ (BOOL)canEncodeToHEICFormat -{ ++ (BOOL)canEncodeToHEICFormat { static BOOL canEncode = NO; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{