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

<< More Tutorials

How to create a square thumbnail from an image in cURL using rethumb?

To create a square thumbnail in cURL use the following code:

curl http://api.rethumb.com/v1/square/100/http://images.rethumb.com/image_coimbra_600x300.jpg > resized-image.jpg

Start using this example now

Use the following commands to get started:

$ git clone https://github.com/rethumb/rethumb-curl-examples.git
$ cd rethumb-curl-examples
$ sh resize-to-square.sh

More examples using cURL