Free Trial
10 days, no credit_card

<< More Tutorials

How to make an image responsive in HTML using rethumb?

The following code prints HTML with responsive images support. It's ready to use and defines three levels of resolution: 400px, 800px and original image.

Adapt and start using the following code in HTML (we use Picturefill as polyfill):

<script src=""></script>

<img src=""

     srcset=" 400w,

     sizes="100vw" />

Start using this example now

Use the following commands to get started:

$ git clone
$ cd rethumb-html-examples
$ open responsive-images.html

More examples using HTML