I'm not getting any output image when image is not path & is base 64 encoded image.
const image = 'base64 encoded string';
gm(image, ['jpeg'])
.resize(72, 72)
.strip()
.write('./aks.png', function (err) {
if (!err) console.log('done');
});