Swiftpack.co - SDWebImage/libwebp-Xcode as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by SDWebImage.
SDWebImage/libwebp-Xcode 1.2.4
A wrapper for libwebp + Xcode project. Support Carthage && CocoaPods && SwiftPM.
⭐️ 46
🕓 19 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/SDWebImage/libwebp-Xcode.git", from: "1.2.4")

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


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



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

pod 'libwebp'


libwebp is (via this repo) available through Carthage.

github "SDWebImage/libwebp-Xcode"


Libwebp is available through Swift Package Manager.

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


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


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


Stars: 46
Last commit: 19 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Snapshot of libwebp 1.2.1
1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics