Latest 0.0.3
Homepage https://github.com/yakatak/YKWebPImage
License Apache 2.0
Platforms ios 8.0, requires ARC
Authors

Plug-and-play WebP Image support for iOS. Compatibile with many other image fetch and caching libraries, including Haneke

  • Works transparently with Swift

Installation

CocoaPods:

use_frameworks!
pod 'YKWebPImage'

And that’s it! There is no code to write, simply passing webp data or files to the UIImage API is enough.

Requirements

  • iOS 8.0+

Under the hood

In the interest of full disclosure, this library makes very liberal use of swizzling to achieve "Plug-and-play" functionality. Specifically, the following methods are swizzled:

[UIImage imageNamed:inBundle:compatibleWithTraitCollection:]
[UIImage initWithData:]
[UIImage initWithData:scale:]
[UIImage initWithContentsOfFile:]

That being said, every effort has been made to ensure that the implementation complies with UIKit’s expectations.

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Latest podspec

{
    "name": "YKWebPImage",
    "version": "0.0.3",
    "homepage": "https://github.com/yakatak/YKWebPImage",
    "license": {
        "type": "Apache 2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Yakatak": "[email protected]"
    },
    "social_media_url": "https://twitter.com/yakatak",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/yakatak/YKWebPImage.git",
        "tag": "v0.0.3"
    },
    "source_files": "YKWebPImage/**/*.{m,h}",
    "requires_arc": true,
    "vendored_frameworks": "WebP.framework",
    "summary": "Plug and Play WebP support for iOS",
    "description": "# YKWebPImagenPlug and Play WebP Image support for iOS. It's as simple as installing the Pod. Under the hood, this library swizzles the init methods of `UIImage` and adds a lightweight header scan of the image data to check for WebP format, then decodes if a positive match is found."
}

Pin It on Pinterest

Share This