Latest 0.2.0
Homepage https://github.com/SDWebImage/SDWebImageBPGCoder
License MIT
Platforms ios 8.0, osx 10.10
Dependencies SDWebImage/Core
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

This is a demo to show to build custom decoder for SDWebImage by embedding third-party framework.

Requirements

  • iOS 8
  • macOS 10.10

Installation

SDWebImageBPGCoder is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SDWebImageBPGCoder'

Usage

To use BPG coder, you should firstly add the SDWebImageBPGCoder to the coders manager. Then you can call the View Category method to start load BPG images.

  • Objective-C
SDWebImageBPGCoder *BPGCoder = [SDWebImageBPGCoder sharedCoder];
[[SDImageCodersManager sharedManager] addCoder:BPGCoder];
UIImageView *imageView;
[imageView sd_setImageWithURL:url];
  • Swift
let BPGCoder = SDWebImageBPGCoder.shared
SDImageCodersManager.shared.addCoder(BPGCoder)
let imageView: UIImageView
imageView.sd_setImage(with: url)

Screenshot

SDWebImageBPGCoder

The images are from BPG official site

Author

DreamPiggy

Thanks

HCImage-BPG

License

SDWebImageBPGCoder is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SDWebImageBPGCoder",
    "version": "0.2.0",
    "summary": "BPG decoder for SDWebImage plugin coder.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/SDWebImage/SDWebImageBPGCoder",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "DreamPiggy": "[email protected]"
    },
    "source": {
        "git": "https://github.com/SDWebImage/SDWebImageBPGCoder.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.10"
    },
    "source_files": [
        "SDWebImageBPGCoder/Classes/**/*",
        "Vendor/libbpg/include/libbpg.h"
    ],
    "private_header_files": "Vendor/libbpg/include/libbpg.h",
    "osx": {
        "vendored_libraries": "Vendor/libbpg/lib/mac/libbpg.a"
    },
    "ios": {
        "vendored_libraries": "Vendor/libbpg/lib/ios/libbpg.a"
    },
    "dependencies": {
        "SDWebImage/Core": [
            ">= 5.0.0-beta2"
        ]
    }
}

Pin It on Pinterest

Share This