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

<< More Tutorials

How to read Exif data in json format from an image in PHP using rethumb?

To read Exif data in json format from an image in PHP use the following code:

<?php

    $response  = file_get_contents("http://api.rethumb.com/v1/exif/all/http://images.rethumb.com/image_exif_1.jpg");

    $json = json_decode($response);

    print_r($json);

?>

Start using this example now

Use the following commands to get started:

$ git clone https://github.com/rethumb/rethumb-php-examples.git
$ cd rethumb-php-examples
$ php read-exif-data-in-json.php

More examples using PHP