Image Service

View this project on GitHub

Normal image

<img src="/img/sample-images/earth.jpg" />

Resized image 1

<img src="/img/sample-images/earth.jpg?s=300" />

Resized image 2

<img src="/img/sample-images/earth.jpg?s=100" />

Resized image 3

Using the m flag to specify size as a minimum, rather than a maximum (so the smaller dimension will be equal to s).

<img src="/img/sample-images/earth.jpg?s=100&m=1" />