This package, `imagemagick-cli`, provides a robust and platform-independent Node.js interface for executing ImageMagick command-line tools. Currently at version 0.5.0, it differentiates itself by safely handling system-specific nuances, most notably mitigating the "Windows convert issue" where the `convert` command can conflict with a built-in Windows utility. It offers cross-platform compatibility, tested and verified across macOS, Linux, and Windows, supporting both ImageMagick 6 and 7 installations. The library is designed to wrap existing CLI tools, focusing on reliable execution rather than reimplementing ImageMagick's functionality in JavaScript. Releases are generally infrequent, driven by the need to address compatibility issues or improve stability.
npm install imagemagick-cliVerified import paths — ran on the pinned version, not inferred.
Demonstrates executing an ImageMagick command and retrieving its version using the `imagemagick-cli` wrapper, with error handling for common installation issues.
Install ImageMagick on your operating system. For example, on macOS: `brew install imagemagick`; on Ubuntu: `sudo apt-get install imagemagick`; on Windows, download from the official ImageMagick website.
Always use `imagemagickCli.exec('convert ...')` (or `imagemagickCli.exec('magick convert ...')` for IM7) instead of attempting to spawn `convert` directly when working with ImageMagick commands on Windows.Upgrade to `imagemagick-cli@0.2.0` or higher to resolve compatibility issues with ImageMagick paths containing spaces on Windows.
Verify that ImageMagick is installed on your system and its executable directory is included in your system's PATH. On Windows, also confirm there are no conflicts with the built-in `convert.exe` by trying `magick convert -version` in CMD.
Install ImageMagick on your system and ensure it's correctly configured in the system PATH. You can often debug by trying `convert -version` or `magick -version` directly in your terminal.
Ensure ImageMagick is installed and that its installation directory (containing `convert.exe`, `magick.exe`, etc.) is correctly added to your system's PATH environment variable. Restart your terminal or IDE after modifying PATH.
No dependency data recorded yet.