A wrapper for libwebp + Xcode project. Support Carthage && CocoaPods && SwiftPM.
Go to file
WonJo 6b12581da8
Update Package.swift
2021-08-06 11:53:33 +09:00
Xcode Bumped version to 1.2.0 2021-02-19 15:21:30 +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@fedac6cc69 Update to v1.2.0 2021-02-19 15:04:31 +08:00
libwebp.xcodeproj Bump libwebp for Apple platform min deployment target version, to fix the Xcode 12 error 2020-09-09 15:52:47 +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 Update Package.swift 2021-08-06 11:53:33 +09:00
README.md Bump libwebp for Apple platform min deployment target version, to fix the Xcode 12 error 2020-09-09 15:52:47 +08:00
libwebp.podspec Bumped version to 1.2.0 2021-02-19 15:21:30 +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.10
  • 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.