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