Pokko
Search…
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.
1
query BlogPostById($id: String!) {
2
entries {
3
blogPost(id: $id) {
4
image {
5
url(process: { height: ..., width: ..., fit: CONTAIN, position: CENTRE })
6
}
7
}
8
}
9
}
10
Copied!
The process parameter is optional, but if specified both the height and width arguments are required, the fit and position remain optional.
Last modified 3mo ago
Copy link