Pokko
Login
Search…
Pokko
Documentation
📌
Basic features
Data modelling
Media library
Querying content
Webhooks
🦺
Advanced features
Data model inheritance
Content hierarchy
Base values
Automatic fields
Content workflow
Modular content
Isolated environments
🦮
Guides
NextJS
Powered By
GitBook
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.
Basic features - Previous
Data modelling
Next - Basic features
Querying content
Last modified
8mo ago
Copy link
Contents
Image processing