MagickBird

用于 Swift 的 MagickWand 库。

注意:如果为 arm64 (也就是新的 M1 芯片) 构建,请在 swift buildswift run 命令的末尾添加 --arch arm64

入门指南

使用 MagickBirdContext,它会在您的代码周围打开 MagickWandGenesis 并关闭 MagickWandTerminus

MagickBirdContext {
  Tiler(inputPath: "./output/kitten.jpg", outputPath: "./output/").tile(levels: (10...13))
}

类似项目 / 灵感来源

  1. https://github.com/naithar/MagickWand - 使用 ImageMagick 6
  2. https://mikemikina.com/blog/watermarking-photos-with-imagemagick-vapor-3-and-swift-on-macos-and-linux/ - 如何设置库链接
  3. https://github.com/novi/SwiftMagickWand - 超级简单