JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q25276F
  • License MIT

ImageMagick 6 bindings for Node.js

Package Exports

  • @native-bindings/imagemagick6
  • @native-bindings/imagemagick6/app/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@native-bindings/imagemagick6) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@native-bindings/imagemagick6

Installation

npm i @native-bindings/imagemagick6

Requirements

  • C++14
  • CMake >= 3.7

Usage

import { Geometry, Image } from "@native-bindings/imagemagick6";

const img = new Image();
img.read("image.png");
img.resize(new Geometry(100, 100, 0, 0));
img.write("new-image.png");
import { Image } from "@native-bindings/imagemagick6";

const img1 = new Image();
img1.read("image.png");

const img2 = new Image();
img2.read("image.png");
img2.motionBlur(20, 3, 40);

console.log(img2.compare(img1));
import { Image, Color, Geometry } from "@native-bindings/imagemagick6";

const img = new Image();
img.density(new Point(256, 256));
img.backgroundColor(new Color(0, 0, 0, 0));
img.read(path.resolve(__dirname, "icon.svg"));
img.resize(new Geometry(256, 256, 0, 0));
img.write(__dirname + "/icon.png");