> For the complete documentation index, see [llms.txt](https://documentation.siteglide.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.siteglide.com/cms/file-manager/optimising-images-natively-with-cloudflare/optimising-thumbnails-and-medium-sized-images-guide.md).

# Optimising Thumbnails and Medium-Sized Images - Guide

## TLDR - Summary

### Thumbnails

For thumbnails, we recommend the following Liquid:

```liquid
{% include 'img', path: this.image, layout: 'default/sm', width: 40 %}
```

You can set the width to the size you want the thumbnails to be displayed. The browser will download an image of this size, unless the user has a high resolution screen, in which case it will download a larger version of the image to keep the quality high.

### Medium-Sized Images

For images which are displayed larger than thumbnails and may be full-width on mobile, but may be displayed smaller than full-width on desktop, we recommend our `default/base` layout:

```liquid
{% include 'img', path: this.image, layout: 'default/base', width: 600 %}
```

The browser will load a version of the image responsively, but it will never load one wider than the max-width you provide.
