{"id":28559037,"url":"https://github.com/sdwebimage/libwebp-xcode","last_synced_at":"2025-06-10T08:35:59.172Z","repository":{"id":46683281,"uuid":"146444134","full_name":"SDWebImage/libwebp-Xcode","owner":"SDWebImage","description":"A wrapper for libwebp + Xcode project. Support Carthage \u0026\u0026 CocoaPods \u0026\u0026 SwiftPM.","archived":false,"fork":false,"pushed_at":"2025-02-12T12:20:14.000Z","size":58,"stargazers_count":64,"open_issues_count":0,"forks_count":41,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-04T03:25:55.801Z","etag":null,"topics":["carthage","ios","macos","swiftpm","tvos","watchos","webp"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SDWebImage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-08-28T12:27:34.000Z","updated_at":"2025-06-02T16:02:34.000Z","dependencies_parsed_at":"2025-05-29T13:16:55.561Z","dependency_job_id":null,"html_url":"https://github.com/SDWebImage/libwebp-Xcode","commit_stats":{"total_commits":51,"total_committers":5,"mean_commits":10.2,"dds":"0.23529411764705888","last_synced_commit":"5c56ef8d87ded100d46f60d5c23522c5f33f54cc"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDWebImage%2Flibwebp-Xcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDWebImage%2Flibwebp-Xcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDWebImage%2Flibwebp-Xcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDWebImage%2Flibwebp-Xcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SDWebImage","download_url":"https://codeload.github.com/SDWebImage/libwebp-Xcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDWebImage%2Flibwebp-Xcode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259039545,"owners_count":22796853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["carthage","ios","macos","swiftpm","tvos","watchos","webp"],"created_at":"2025-06-10T08:35:57.396Z","updated_at":"2025-06-10T08:35:59.137Z","avatar_url":"https://github.com/SDWebImage.png","language":"Ruby","readme":"# libwebp + Xcode\n\nA wrapper for [libwebp](https://github.com/webmproject/libwebp) + Xcode project.\nThis enables Carthage support\nThis also contains the Swift Package Manager support\n\n[![CI Status](http://img.shields.io/travis/SDWebImage/libwebp-Xcode.svg?style=flat)](https://travis-ci.org/SDWebImage/libwebp-Xcode)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/SDWebImage/libwebp-Xcode)\n[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg)](https://swift.org/package-manager/)\n\n## Requirements\n\n+ iOS 8\n+ macOS 10.11\n+ tvOS 9.0\n+ watchOS 2.0\n\n## Installation\n\n#### CocoaPods\n\nlibwebp is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```ruby\npod 'libwebp'\n```\n\n### Carthage\n\nlibwebp is (via this repo) available through [Carthage](https://github.com/Carthage/Carthage).\n\n```\ngithub \"SDWebImage/libwebp-Xcode\"\n```\n\n### SwiftPM\n\nLibwebp is available through [Swift Package Manager](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg).\n\n```swift\nlet package = Package(\n    dependencies: [\n        .package(url: \"https://github.com/SDWebImage/libwebp-Xcode\", from: \"1.1.0\")\n    ],\n    // ...\n)\n```\n\n## Usage\n\nUse libwebp as you would normally, this is just a repo that adds an Xcode proj.\n\nFor Swift Package Manager user, it's recommended to use the modular import instead of C headers.\n\n+ Objective-C\n\n```objective-c\n@import libwebp;\n// or if you don't use module\n#import \u003cwebp/decode.h\u003e\n#import \u003cwebp/encode.h\u003e\n```\n\n+ Swift\n\n```swift\nimport libwebp\n```\n\n## About sharpyuv\n\nFrom libwebp v1.2.3, Google separate some functions into a new standalone lib called `sharpyuv`. However, it dependeny source code from libwebp repo's `src` as implementation. Like llvm-project monorepo, one repo host multiple targets.\n\nBefore v1.3.0, we hide these headers as internal headers.\n\nFrom v1.3.0, we expose the sharpyuv public headers, but not a standalone CocoaPods/SPM/Carthage Target. (In the future we may consider separate targets)\n\nIf you want to use sharpyuv functions, do something like this:\n\n+ Objective-C\n\n```\n// This does not supports module include\n#if __has_include(\u003csharpyuv/sharpyuv.h\u003e)\n#import \u003csharpyuv/sharpyuv.h\u003e\n#else\n#import \u003clibwebp/sharpyuv.h\u003e // bundled in libwebp's modulemap\n#endif\n```\n\n+ Swift\n\n```swift\n#if canImport(sharpyuv)\nimport sharpyuv\n#else\nimport libwebp // bundled in libwebp's modulemap\n#endif\n```\n\n## License\n\nlibwebp is available under the BSD-3 license. See [the LICENSE file](https://github.com/webmproject/libwebp/blob/master/COPYING) for more info.\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdwebimage%2Flibwebp-xcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdwebimage%2Flibwebp-xcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdwebimage%2Flibwebp-xcode/lists"}