SwiftImageMagick

main

A Swift package wrapping ImageMagick for image manipulation.
coenttb/swift-image-magick

swift-image-magick

Swift wrapper for ImageMagick C library, enabling image manipulation and processing with a Swift-native API.

Features

  • 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.

Installation

Prerequisites

  1. 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
  2. Swift Package Manager Add SwiftImageMagick to your Package.swift dependencies:

let package = Package(
    name: "YourProject",
    dependencies: [
        .package(url: "https://github.com/coenttb/swift-image-magick.git", branch: "main")
    ],
    targets: [
        .target(name: "YourProject", dependencies: ["SwiftImageMagick"])
    ]
)

Related Packages

This package has no dependencies and is not currently used by other packages in the ecosystem.

Contributing

Contributions are welcome. Please open an issue or submit a pull request.

License

This project is licensed by coenttb under the Apache 2.0 License. See LICENSE for details.

Description

  • Swift Tools 6.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Apr 09 2026 09:28:17 GMT-0900 (Hawaii-Aleutian Daylight Time)