2.0.0 • Published 7 years ago

simple-sips v2.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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' }
}