A wrapper for libwebp + Xcode project. Support Carthage && CocoaPods && SwiftPM.
Go to file
DreamPiggy 86c1b5d567 Bumped version to 1.1.0 2020-01-07 16:25:25 +08:00
Xcode Bumped version to 1.1.0 2020-01-07 16:25:25 +08:00
include/webp Change to use the symbol link to the webp folder, fix the SwiftPM 2019-12-27 19:07:12 +08:00
libwebp@d7844e9762 Update to v1.1.0-rc2 2019-12-27 11:31:40 +08:00
libwebp.xcodeproj Update to v1.0.2 2019-05-15 14:38:26 +08:00
libwebpExample Added Xcode project that builds libwebp as a framework for all 4 platforms + small macos command line example 2018-08-28 15:44:11 +03:00
.gitignore Support Swift Package Manager 2019-10-06 12:37:37 +08:00
.gitmodules Added libwebp dependency 2018-08-28 14:24:53 +03:00
.travis.yml Fix the Travic-CI script because of rubygem version bump, update the readme 2019-12-27 12:14:32 +08:00
Package.swift Change to use the symbol link to the webp folder, fix the SwiftPM 2019-12-27 19:07:12 +08:00
README.md Bumped version to 1.1.0 2020-01-07 16:25:25 +08:00
libwebp.podspec Bumped version to 1.1.0 2020-01-07 16:25:25 +08:00

README.md

libwebp + Xcode

A wrapper for libwebp + Xcode project. This enables Carthage support This also contains the Swift Package Manager support

CI Status Carthage compatible SwiftPM compatible

Requirements

  • iOS 8
  • macOS 10.6
  • tvOS 9.0
  • watchOS 2.0

Installation

CocoaPods

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

pod 'libwebp'

Carthage

libwebp is (via this repo) available through Carthage.

github "SDWebImage/libwebp-Xcode"

SwiftPM

Libwebp is available through Swift Package Manager.

let package = Package(
    dependencies: [
        .package(url: "https://github.com/SDWebImage/libwebp-Xcode", from: "1.1.0")
    ],
    // ...
)

Usage

Use libwebp as you would normally, this is just a repo that adds an Xcode proj.

For Swift Package Manager user, it's recommended to use the modular import instead of C headers.

  • Objective-C
@import libwebp;
// or if you don't use module
#import <webp/decode.h>
#import <webp/encode.h>
  • Swift
import libwebp

License

libwebp is available under the BSD-3 license. See the LICENSE file for more info.