Swift wrapper for ImageMagick C library, enabling image manipulation and processing with a Swift-native API.
- Swift-friendly interface for ImageMagick.
- Perform operations like:
- Text Metrics: Calculate text properties (width, height, ascender, descender, bounding box, etc.).
- Image Manipulation: Resize, transform, and process images.
-
ImageMagick must be installed on your system.
-
On macOS (Homebrew):
brew install imagemagick
-
On Linux (Debian/Ubuntu):
sudo apt-get update sudo apt-get install libmagickwand-dev
-
-
Swift Package Manager Add
SwiftImageMagickto yourPackage.swiftdependencies:
let package = Package(
name: "YourProject",
dependencies: [
.package(url: "https://github.com/coenttb/swift-image-magick.git", branch: "main")
],
targets: [
.target(name: "YourProject", dependencies: ["SwiftImageMagick"])
]
)This package has no dependencies and is not currently used by other packages in the ecosystem.
Contributions are welcome. Please open an issue or submit a pull request.
This project is licensed by coenttb under the Apache 2.0 License. See LICENSE for details.