🚨 rethumb will shutdown on September 4th, 2021 🚨 (Twitter)

<< More Tutorials

How to use rethumb in Node.js?

To use rethumb in Node.js try the following code:

var http = require('http');
var fs = require('fs');

var file = fs.createWriteStream("beach.thumb.jpg");
var request = http.get("http://api.rethumb.com/v1/width/100/http://factor45.org/images/beach.jpg", function(response) {

Start using this example now

Use the following commands to get started:

$ git clone https://github.com/rethumb/rethumb-nodejs-examples.git
$ cd rethumb-nodejs-examples
$ node generic.js

More examples using Node.js