> For the complete documentation index, see [llms.txt](https://docs.os.uk/os-downloads/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.os.uk/os-downloads/products/maps-and-imagery-portfolio/maps-and-imagery-fundamentals/maps-and-imagery-products-overview/data-compression.md).

# Data compression

The data volumes for each file format are influenced by the level of data compression.

## Image compression <a href="#id-3.3.1-image-compression" id="id-3.3.1-image-compression"></a>

When an image is compressed, duplicated data that has no value is removed or saved in a shorter form, reducing a file’s size. For example, if large areas of water are the same tone, only the value for one pixel needs to be saved, together with the locations of the other pixels with the same colour. When the image is edited or displayed, the compression process is reversed. When raster data is compressed, not only are the data volumes reduced, but the user can download, display, edit and transfer images more quickly.

There are two forms of compression: lossless and lossy:

* **Lossless compression:** As its name suggests, lossless compression does not lose information within an image. Lossless compression retains the original quality of an image when it is uncompressed. This process does not provide much compression, so file sizes remain large. Lossless compression is used mainly where detail is important, such as when planning to make large prints.
* **Lossy compression:** This process degrades images to some degree, meaning that the decompressed image is not quite the same as the original. The more an image is compressed, the more degraded it becomes. In many situations, such as posting images on the Internet or printing small- to medium-sized prints, the image degradation is not so obvious. If a lossy compressed image is over-enlarged, the degradation will become apparent, and therefore, 1:25 000 Scale Colour Raster is not supplied using this form of compression.

## TIFF <a href="#id-3.3.2-tiff" id="id-3.3.2-tiff"></a>

TIFF is one of the most used lossless image formats. TIFF is primarily designed for raster data interchange and is supported by numerous image-processing applications. This permits much more efficient access to exceptionally large files that have been compressed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.os.uk/os-downloads/products/maps-and-imagery-portfolio/maps-and-imagery-fundamentals/maps-and-imagery-products-overview/data-compression.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
