<< More Tutorials
How to convert an image to JPG, GIF, PNG, TIF or WebP in cURL using rethumb?
To convert an image to JPG, GIF, PNG, TIF or WebP in cURL use the following code:
# First apply a square operation, then convert to PNG format.
# Other formats available: jpg, gif, tiff and webp.
curl http://api.rethumb.com/v1/square/100/format/png/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 format.sh
More examples using cURL
How to use rethumb in cURL?
How to resize an image by width in cURL using rethumb?
How to resize an image by height in cURL using rethumb?
How to resize an image by width and height in cURL using rethumb?
How to create a square thumbnail from an image in cURL using rethumb?
How to read Exif data in json format from an image in cURL using rethumb?
How to convert an image to JPG, GIF, PNG, TIF or WebP in cURL using rethumb?
How to resize an image to cover any dimensions in cURL using rethumb?