7 lines
188 B
JavaScript
7 lines
188 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const sharp = require('sharp');
|
||
|
|
||
|
sharp('in/marmot.jpg').greyscale().toFile('out/greyscale-marmot.jpg');
|
||
|
sharp('in/ducks.jpg').greyscale().toFile('out/greyscale-ducks.jpg');
|