Resize a PNG buffer into square images of different sizes.
var resizePngBuffer =var fs =var resize =
resize = resizePngBuffer(buffer)
resize function, where
buffer is the contents of a PNG file
as a Node.js Buffer.
resize(shape, done(err, buffer))
Resizes the image using
shape, an array with
[width, height] for the output
done(err, buffer) when complete, where
buffer is the contents
of the output PNG file as a Node.js Buffer.