0.1.24 • Published 2 years ago
bs-magick v0.1.24
ImageMagickJS
Install
Install using your package manager :
npm i --save bs-magick
or
yarn add bs-magick
Import the package in your js / ts file :
const magick = require("bs-magick");
or
import magick from "bs-magick";
Available commands
Commands can be used with a classic promise or inside an async function using await.
custom
Send custom command to magick.
Parameters : options : string, magick command with custom options
const options = "convert -background lightblue -fill blue \
-pointsize 72 label:christophe \
label.gif";
magick.custom(options)
.then((response) => console.log(response))
.catch((e) => {console.log(e);});