Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

resize image in node.js

sharp('input.jpg')
  .rotate()
  .resize(200)
  .jpeg({ mozjpeg: true })
  .toBuffer()
  .then( data => { ... })
  .catch( err => { ... });
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #resize #image
ADD COMMENT
Topic
Name
8+1 =