opencv

opencv / BasicThumbnail / 0.1.2

README.md

Takes an image (data uri, base64 encoded, or web url) and dimensions for a thumbnail and returns the binary of the resulting PNG encoded image.

Pipe your input to this algorithm as an array with first element the string containing the image in one of the formats mentioned above, an integer for desired thumbnail width and an integer for desired thumbnail height.