Giter Club home page Giter Club logo

webp-cocoa's Introduction

WebP-Cocoa Banner

WebP is a modern image file format that provides amazing lossy and lossless compression fidelity. WebP is developed by Google who very kindly publishes the underlying library, libwepb as open source software.

Google provides precompiled binaries of WebP for both iOS and macOS on WebP's download page. However, at the time of writing, their build pipeline has not yet been updated to support the more modern features of Apple's platforms, such as Swift module support, or architectural slices for Mac Catalyst.

Using Google's original iOS build script as a base, this repository uses GitHub Actions to automatically build and release precompiled WebP binaries for all of Apple's platforms. This includes support for watchOS and tvOS as well as support for Mac Catalyst via Apple's new xcframework format.

There are 4 separate frameworks available for each platform:

  • WebP: Enables both encoding and decoding of WebP image files.
  • WebPDecoder: Enables just the decoding of WebP image files.
  • WebPMux: Enables manipulation of WebP container image features like color profile, metadata, animation.
  • WebPDemux: Enables extraction of image and extended format data from WebP files.

Installation Instructions

  1. Download and extract the package for your platform and capabilities of choice.
  2. Drag the framework folder into your Xcode project.
  3. When prompted, make sure Copy items if needed is checked before proceeding.

Download Frameworks

For fast access, the binaries are bundled up and provided in a variety of different ZIP archive combinations. Simply click any of the links below to begin downloading.

Download All Frameworks for All Platforms (ZIP)
Platform Versions Slices Download Packages
iOS
iPadOS
iOS 9.0 and up.
iPadOS 13.0 and up.
Mac Catalyst 13.0 and up.
  • arm64
  • armv7
  • armv7s
  • x86_64
  • i386
macOS OS X 10.9 and up.
  • x86_64
  • arm64
tvOS tvOS 9.0 and up.
  • arm64
  • x86_64
watchOS watchOS 2.0 and up.
  • arm64_32
  • armv7k
  • i386
  • x86_64

Dependency Managers

If you would prefer to integrate libwebp via a dependency manager, the libwebp-Xcode project managed by SDWebImage already provides amazing support for all of the major dependency managers.

For convenience, the configuration settings for using libwebp-Xcode's packages are as follows:

CocoaPods

pod 'libwebp'

Carthage

github "SDWebImage/libwebp-Xcode"

Swift Package Manager (SPM)

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

Credits

Repository created and maintained by Tim Oliver. WebP logo artwork by Simo99 used under CC BY-SA 3.0. WebP is developed by Google.

License

All code in this repository is under the BSD-3-Clause License. Please see the LICENSE file for more information.

webp-cocoa's People

Contributors

timoliver avatar xd-ci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nalija

webp-cocoa's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.