Free Trial
10 days, no credit_card

<< More Tutorials

How to convert an image to JPG, GIF, PNG, TIF or WebP in HTML using rethumb?

To convert an image to JPG, GIF, PNG, TIF or WebP in HTML use the following code:

<!--
  First apply a square operation, then convert to PNG format.
  Other formats available: jpg, gif, tiff and webp.
-->
<img src="http://api.rethumb.com/v1/square/100/format/png/http://images.rethumb.com/image_coimbra_600x300.jpg">

Start using this example now

Use the following commands to get started:

$ git clone https://github.com/rethumb/rethumb-html-examples.git
$ cd rethumb-html-examples
$ open format.html

More examples using HTML