Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/native-bindings/imagemagick
ImageMagick 6 bindings for Node.js
https://github.com/native-bindings/imagemagick
bindings image-magick image-processing nodejs
Last synced: 6 days ago
JSON representation
ImageMagick 6 bindings for Node.js
- Host: GitHub
- URL: https://github.com/native-bindings/imagemagick
- Owner: native-bindings
- License: mit
- Created: 2021-08-09T20:31:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-16T18:20:34.000Z (about 1 year ago)
- Last Synced: 2024-12-13T21:03:54.490Z (9 days ago)
- Topics: bindings, image-magick, image-processing, nodejs
- Language: C++
- Homepage:
- Size: 1.69 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @native-bindings/imagemagick6
### Installation
```
npm i @native-bindings/imagemagick6
```### Requirements
- C++14
- CMake >= 3.7### Usage
```ts
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");
``````ts
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));
``````ts
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");
```