New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

g-image

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

g-image

GraphicsMagick bindings for Node.js

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

image-m

Installation

yarn add g-image

Requirements

  • GraphicsMagick 1.3.36
  • C++14
  • CMake >= 3.7

Usage

import {Geometry,Image} from 'image-m';

const img = new Image();
img.read('image.png');
img.resize(new Geometry(100,100,0,0));
img.write('new-image.png');
import {Image} from 'image-m';

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 'image-m';

const img = new Image();
img.density(new Geometry('256x256'));
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');

Keywords

imagemagick

FAQs

Package last updated on 10 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts