libwebp

1.4.1

webp codec support for swift.
the-swift-collective/libwebp

What's New

v1.4.1

2025-02-18T14:40:39Z
To use this release of libwebp in your own swift project, add libwebp as a package dependency in your project's Package.swift file.
// swift-tools-version: 5.5

dependencies: [
  .package(url: "https://github.com/the-swift-collective/libwebp.git", from: "1.4.1"),
]
Then, for any target you'd like, add the libwebp product as a target dependency.
targets: [
  .target(
    name: "MyLibrary",
    dependencies: [
      /* add the libwebp product as a library dependency. */
      .product(name: "WebP", package: "libwebp"),
    ]
  ),
]

WebP

Cross platform swift package for the libwebp library.

Usage

To use webp in swift, add libwebp as a package dependency in your project's Package.swift file.
dependencies: [
  .package(url: "https://github.com/the-swift-collective/libwebp.git", from: "1.4.0"),
]
Then, for any target you'd like, add the libwebp product as a target dependency, a complete example.
// swift-tools-version: 5.8
import PackageDescription

let package = Package(
  name: "MyPackage",
  products: [
    .library(
      name: "MyLibrary",
      targets: ["MyLibrary"]
    ),
  ],
  dependencies: [
    .package(url: "https://github.com/the-swift-collective/libwebp.git", from: "1.4.0")
  ],
  targets: [
    .target(
      name: "MyLibrary",
      dependencies: [
        /* add the webp product as a library dependency. */
        .product(name: "WebP", package: "libwebp"),
      ]
    ),
  ]
)


the swift collective - cross platform swift packages.
libwebp is licensed under the terms of the BSD 3-Clause "New" or "Revised" License.

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

Last updated: Sun Jan 18 2026 16:16:35 GMT-1000 (Hawaii-Aleutian Standard Time)