simple-sips
v2.0.0
Published
query or modify raster image files and ColorSync ICC profiles
Downloads
3
Maintainers
Readme
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' }
}