> For the complete documentation index, see [llms.txt](https://docs.pokko.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pokko.io/basic-features/media-library.md).

# Media library

Pokko provides a smart media library backed by a global CDN ensuring your clients have immediate access to your media assets.

The media library can store any type of file from plain text to images and videos.

## Image processing

Images uploaded to the Pokko media library can be processed by the CDN, resizing and cropping as needed.

The GraphQL query for a media item provides the options to perform these transformations.

```
query BlogPostById($id: String!) {
  entries {
    blogPost(id: $id) {
      image {
        url(process: { height: ..., width: ..., fit: CONTAIN, position: CENTRE })
      }
    }
  }
}

```

The `process` parameter is optional, but if specified both the `height` and `width` arguments are required, the `fit` and `position` remain optional.


---

# 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:

```
GET https://docs.pokko.io/basic-features/media-library.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
