Store page assets
A listed game can have a capsule (the picture in lists and search), a tall capsule, a hero (the banner on the game's page), an icon, up to twelve screenshots and a trailer. None is required: a game without art gets a typographic cover made from its title.
Upload them in Studio (the Media tab of the game), or with the developer API. The store decides what a file is from its bytes, never from its name or declared type.
Formats and sizes #
| Slot | Used for | Kind | Largest file | Smallest image | Largest image | How many |
|---|---|---|---|---|---|---|
capsule | The picture in lists, search and shelves (460 x 215 is the natural size). | image (PNG, JPEG, WebP) | 3 MiB | 460 x 215 | 3840 x 2160 | 1 |
capsuleTall | A portrait capsule (300 x 450). | image (PNG, JPEG, WebP) | 3 MiB | 300 x 450 | 2000 x 3000 | 1 |
hero | The wide banner at the top of the game's page. | image (PNG, JPEG, WebP) | 6 MiB | 1200 x 300 | 4096 x 2304 | 1 |
icon | A small square icon. | image (PNG, JPEG, WebP) | 1 MiB | 64 x 64, square | 1024 x 1024 | 1 |
screenshot | Screenshots on the game's page, in the order you set. | image (PNG, JPEG, WebP) | 6 MiB | 800 x 450 | 3840 x 2160 | 12 |
trailer | One trailer, played on the game's page. | video (WebM, MP4) | 200 MiB | — | — | 1 |
- Images are PNG, JPEG or WebP. Videos are WebM or MP4. SVG, HTML and anything else that can carry script are refused (
unsupported_type), as is a file whose structure is damaged (corrupt_image) or that carries trailing bytes or markup (scriptable_content). - A file smaller or larger than a slot allows in pixels is refused with
media_dimensionsand the limits; a file over the byte limit withmedia_too_large. - The icon must be square.
- A trailer can be up to 200 MiB. If yours is bigger, export it as 1080p H.264 (MP4) or VP9 (WebM). The store only accepts a couple of trailer uploads at a time: on
upload_busy, wait theretryAfterseconds and try again. - A video's dimensions are not inspected, only its container and size.
Alt text #
Every image can carry a description for screen readers, in English (and German, if you wrote German texts), up to 300 characters each, no markup. The store falls back to English where a language has none.
From the command line, and removing a file #
velox media upload art/capsule.png --slot capsule --game my-game --alt-en "Cover art"
velox media list --game my-game
velox media delete <sha> --game my-game
Every stored image has a sha: the 64 hex characters of its content hash. velox media upload prints it, and velox media list shows it as its own column (it is also the file name in the image's address, /media/<sha>.<extension>). Pass that value to velox media delete; the address itself works too.
From a script #
curl -X POST "https://velox.games/api/dev/games/my-game/media?slot=capsule&altEn=Cover%20art" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @capsule.png
The body is the raw file. POST .../media/import copies an image from an https address into the store (once, server-side; public addresses only, no redirects), which is how a third-party image stops being flagged external: the store only loads images from its own origin unless the operator allows more.
Colour #
The game's page uses the dominant colour of its art as a backdrop until the hero loads. Set one in Studio if the automatic choice is wrong.