Miss any of our Open RFC calls?Watch the recordings here! »

simple-sips

2.0.0 • Public • Published

simple-sips

Image manipulation with scriptable image processing system.

From the sips manpage:

This tool is used to query or modify raster image files and ColorSync ICC profiles.

usage

const sips = require(`simple-sips`)
 
sips({
  source: `/path/to/image`,
  destination: `/path/to/destination`,
  options: {
    rotate: 45
  }
})
.then(stdout => console.log(`rotated image 45 degrees clockwise`))
.catch(console.error)

api

sips(config)

Returns a Promise. config is an object which expects the keys: source, destination and options.

source - original image path

destination - output path

options - object with sips options

options object examples

image query functions
{
  getProperty: [ `pixelHeight`, `pixelWidth` ]
}
image modification functions
{
  setProperty: { description: 'A hotel', copyright: 'Lynyrd' }
}

Install

npm i simple-sips

DownloadsWeekly Downloads

3

Version

2.0.0

License

MIT

Last publish

Collaborators

  • avatar