SDImageGIFCoder.h 1.0 KB

12345678910111213141516171819202122
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. #import <Foundation/Foundation.h>
  9. #import "SDImageIOAnimatedCoder.h"
  10. /**
  11. Built in coder using ImageIO that supports animated GIF encoding/decoding
  12. @note `SDImageIOCoder` supports GIF but only as static (will use the 1st frame).
  13. @note Use `SDImageGIFCoder` for fully animated GIFs. For `UIImageView`, it will produce animated `UIImage`(`NSImage` on macOS) for rendering. For `SDAnimatedImageView`, it will use `SDAnimatedImage` for rendering.
  14. @note The recommended approach for animated GIFs is using `SDAnimatedImage` with `SDAnimatedImageView`. It's more performant than `UIImageView` for GIF displaying(especially on memory usage)
  15. */
  16. @interface SDImageGIFCoder : SDImageIOAnimatedCoder <SDProgressiveImageCoder, SDAnimatedImageCoder>
  17. @property (nonatomic, class, readonly, nonnull) SDImageGIFCoder *sharedCoder;
  18. @end