Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const gm = require('gm').subClass({imageMagick: true});
- gm().command('convert').in('yourImage.jpg').in('yourImage.webp').toBuffer(function(err, buffer){
- if(err)throw err
- //...Do what you need with the buffer
- });
Add Comment
Please, Sign In to add comment