@ai-ecoverse/wasm-imagemagick-relink

中文文档
7.1.2-34-9.8发布于 2026/11/03ImageMagick AND LGPL-2.1-or-later AND LGPL-3.0-or-later零依赖构建来源已验证近 30 天下载 2092

The objects and libraries to relink ImageMagick against modified libraries; you don't need it to use ImageMagick.

原始使用文档

@ai-ecoverse/wasm-imagemagick-relink

The LGPL relink kits of @ai-ecoverse/wasm-imagemagick and @ai-ecoverse/wasm-imagemagick-heif of the same version as this package. Their bin/magick.wasm links its libraries statically, among them GNU libiconv (LGPL-2.1-or-later, through libxml2) and, in the heif build, libheif and libde265 (LGPL-3.0-or-later). With a kit you can link magick again against your own build of any of them. You don't need this package to run ImageMagick (homescoop#593).

Relinking

KitFor
share/imagemagick/relink/@ai-ecoverse/wasm-imagemagick
share/imagemagick-heif/relink/@ai-ecoverse/wasm-imagemagick-heif

Each kit holds magick's objects (magick.a, libMagickCore-7.Q16HDRI.a, libMagickWand-7.Q16HDRI.a), the static libraries of the link (liblcms2.a, libtiff.a, libjpeg.a, libfreetype.a, libpng16.a, libz.a, libwebpmux.a, libwebpdemux.a, libwebp.a, libsharpyuv.a, libopenjp2.a, libxml2.a, libiconv.a, the slicc shims libslicc-cli.a and libslicc_cred.a), the link flags (ldflags.txt, with the --js-library files in js/), relink.sh, the notices of its build (THIRD-PARTY-NOTICES.md) and kit.json: the sha256, size and import and export hashes of the bin/magick.wasm these objects made.

relink.sh <out-dir> [dir] links magick and magick.wasm into <out-dir>. A static library in dir with the name of one of the kit's replaces the kit's copy. For the heif kit, dir is required and also holds libheif, libde265 and dav1d (libheif.a, libde265.a, libdav1d.a, from @ai-ecoverse/wasm-libheif's lib/ or your own build). With Emscripten 4.0.23:

npm pack @ai-ecoverse/wasm-imagemagick-relink@<version> && tar xzf ai-ecoverse-wasm-imagemagick-relink-*.tgz
mkdir -p /tmp/libs && cp /path/to/your/libiconv.a /tmp/libs/
bash package/share/imagemagick/relink/relink.sh /tmp/relinked /tmp/libs
cp /tmp/relinked/magick /tmp/relinked/magick.wasm node_modules/@ai-ecoverse/wasm-imagemagick/bin/

The kits come from the same build as the runtime packages: build.sh runs packages/imagemagick/build.sh and packages/imagemagick-heif/build.sh and keeps their objects. ladder-pr relinks both kits on every build (cert/relink-check.mjs), with libiconv.a from @ai-ecoverse/wasm-libiconv, and checks the result against kit.json.

版本与发布记录

@ai-ecoverse/wasm-imagemagick-relink 共发布 15 个版本,首次发布于 2026/10/16;过去 12 个月发布了 15 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
7.1.2-34-9.8latest2026/11/035 天前
7.1.2-34-9.72026/10/2216 天前
7.1.2-34-9.62026/10/2216 天前
7.1.2-34-9.52026/10/2217 天前
7.1.2-34-9.42026/10/2217 天前
7.1.2-34-9.32026/10/2118 天前

关于 @ai-ecoverse/wasm-imagemagick-relink 的常见问题

@ai-ecoverse/wasm-imagemagick-relink 是什么?

The objects and libraries to relink ImageMagick against modified libraries; you don't need it to use ImageMagick.

如何安装 @ai-ecoverse/wasm-imagemagick-relink?

在项目目录运行 npm install @ai-ecoverse/wasm-imagemagick-relink,或使用 pnpm add / yarn add / bun add。

@ai-ecoverse/wasm-imagemagick-relink 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ai-ecoverse__wasm-imagemagick-relink 是否存在。

@ai-ecoverse/wasm-imagemagick-relink 可以商用吗?

@ai-ecoverse/wasm-imagemagick-relink 使用 ImageMagick AND LGPL-2.1-or-later AND LGPL-3.0-or-later 许可。声明的许可为 ImageMagick AND LGPL-2.1-or-later AND LGPL-3.0-or-later,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@ai-ecoverse/wasm-imagemagick-relink 的下载量有多少?

根据 npm 官方下载统计,@ai-ecoverse/wasm-imagemagick-relink 在 2026/10/05 – 2026/11/03 这 30 天内被下载 2,092 次,日均约 70 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ai-ecoverse/wasm-imagemagick-relink 还在维护吗?

最新版本 7.1.2-34-9.8 发布于 2026/11/03(5 天前);至今共发布 15 个版本,其中过去 12 个月发布了 15 个;首次发布于 2026/10/16。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。