Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created December 30, 2018 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amandeepmittal/06e2377f0e115f46adfe95115e2520b3 to your computer and use it in GitHub Desktop.
Save amandeepmittal/06e2377f0e115f46adfe95115e2520b3 to your computer and use it in GitHub Desktop.
sharp('input.jpg')
.rotate()
.resize(200)
.toBuffer()
.then( data => ... )
.catch( err => ... );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment