Free Trial
10 days, no credit_card

<< More Tutorials

How to use rethumb in PHP?

To use rethumb in PHP try the following code:

<?php
    $thumbnail = file_get_contents("http://api.rethumb.com/v1/width/100/http://factor45.org/images/beach.jpg");
    file_put_contents("beach.thumb.jpg", $thumbnail);
?>

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 generic.php

More examples using PHP