@yft-design/magick-wasm
v0.0.42-slim.1
Published
Slim magick-wasm (JPEG + lcms only, for CMYK conversion) - wrapper rebuilt against a slim native build
Maintainers
Readme
@yft-design/magick-wasm(slim 构建)
基于 dlemstra/[email protected] 的精简版:仅保留 JPEG(libturbojpeg)+ lcms2,wasm 从 14.4MB 减到 3.4MB(gzip 约 1.2MB),用于 CMYK 颜色空间转换场景(不支持 PNG/WebP/TIFF/HEIC 等其他格式)。
- 原生层产物在
native/,来自 more-strive/Magick.Native@slim-cmyk(上游 tag 2026.727.1945) - 胶水(
dist/index.js内嵌)与dist/magick.wasm必须来自同一次构建,不可混用 - 构建:
pnpm install --ignore-workspace && pnpm run place-native && pnpm run build
The WebAssembly library for ImageMagick: magick-wasm
ImageMagick is a powerful image manipulation library that supports over 100 major file formats (not including sub-formats). With magick-wasm you can use ImageMagick in your web application without doing a callback to an api. And this library also allows you to use ImageMagick in Node.js or Deno without installing ImageMagick on the system.
Documentation
For examples on how to use magick-wasm view the https://github.com/dlemstra/magick-wasm/blob/main/demo/demo.ts or demo project: https://github.com/dlemstra/magick-wasm-docs. For more information about ImageMagick go to: http://www.imagemagick.org/.
Download
You can download the npm package from here: https://www.npmjs.com/package/@imagemagick/magick-wasm.
Follow me on bluesky (@dirk.lemstra.org) to receive information about new downloads and changes to magick-wasm and ImageMagick.
Release notes
The release notes can be found on GitHub.
Donate
If you have an uncontrollable urge to give me something for the time and effort I am putting into this project then please sponsor me through GitHub Sponsors or send me an amazon gift card. If you prefer to use PayPal then click here.
