Free Trial
10 days, no credit_card

<< More Tutorials

How to read Exif data in json format from an image in Node.js using rethumb?

To read Exif data in json format from an image in Node.js use the following code:

var http = require("http");

http.get("http://api.rethumb.com/v1/exif/all/http://images.rethumb.com/image_exif_1.jpg",
    function(req) {
        var body = '';

        req.on('data', function(chunk) {
            body += chunk;
        });

        req.on('end', function() {

            var json = JSON.parse(body);

            console.log(json);
        });
    }
);

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 read-exif-data-in-json.js

More examples using Node.js