Skip to content

Instantly share code, notes, and snippets.

@giisyu
Created April 24, 2017 01:02
Show Gist options
  • Save giisyu/15899420436684018109f80b541b9c24 to your computer and use it in GitHub Desktop.
Save giisyu/15899420436684018109f80b541b9c24 to your computer and use it in GitHub Desktop.
npm install --save jimp
node
var Jimp = require("jimp");
Jimp.read("画像パス" , (err,lenna)=>{if(err)throw err;lenna.crop(0,0,32,48).quality(100).write("出力パス");})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment