Introduction
wsrv.nl is an image cache & resize service. Our servers resize your image, cache it worldwide, and display it.
- We support a good range of image formats, including JPEG, PNG, BMP, GIF, TIFF, WebP, PDF and SVG.
- There's even support for animated WebP and GIF images.
- We support IPv6, serving dual stack, and supporting IPv6-only origin hosts.
- For secure connections over TLS/SSL, you can use https://wsrv.nl/.
- This can be very useful for embedding HTTP images on HTTPS websites. HTTPS origin hosts can be used by prefixing the hostname with https://.
- The CDN is provided by Cloudflare. Images are being cached and delivered straight from 300+ global datacenters. This ensures the fastest load times and best performance.
How it works
You pass the image URL and a set of parameters. wsrv.nl will then fetch the image, resize it, cache it and display it. The next time the request comes, it will serve the cached version.
TIP
If the URL includes a querystring, you'll need to ensure that it's properly URL-encoded, replacing ?
with %3F
and &
with %26
, respectively.
html
<!-- wsrv.nl/lichtenstein.jpg -->
<img src="//wsrv.nl/?url=wsrv.nl/lichtenstein.jpg&w=300&h=300">
md
<!--- wsrv.nl/lichtenstein.jpg --->
![Lichtenstein](https://wsrv.nl/?url=wsrv.nl/lichtenstein.jpg&w=300&h=300)