Competition and group images
Every competition and every group can carry two images of its own: a profile image and a cover image. They sit alongside your hub-wide brand kit, so a competition or group can look like itself instead of the hub’s default. Hub admins can set both images on a competition and on a group.
Sizes and files
Section titled “Sizes and files”| Image | Recommended size | Shape |
|---|---|---|
| Profile image | 512×512 pixels | Square |
| Cover image | 1920×640 pixels | 3:1 |
Both sizes are guidance, not rules. A file of another size is cropped to fit, and an upload is refused only in two cases:
- The file is not a PNG, JPG, SVG, WebP, GIF or ICO.
- The file is over 5 MB.
Why these sizes
Section titled “Why these sizes”The sizes come from the places the images already appear.
- Profile image, 512×512. The largest place a profile image is drawn is the 76 px group emblem and the competition header mark. At 512 pixels it stays sharp at double size, and it matches the guidance for your hub’s app icon.
- Cover image, 1920×640. On a competition or group page, the cover sits in a column about 960 px wide, which makes it about 320 px tall at 3:1, and about 130 px tall on a phone. Cards show a shorter 84 px band and crop the centre of the same file, so one cover serves both.
Where each image appears
Section titled “Where each image appears”- Cards show the cover in the band across the top, and the profile image in place of the default icon.
- Group pages use the cover as the hero image.
- Competition pages show the cover as a banner above the page header.
- The public competition page uses the cover as its social image, which is the preview shown when someone shares a link to it. If a competition has no cover, no cover-based social image is added.
Setting the images
Section titled “Setting the images”- Open the competition’s edit form, or the group’s edit page.
- Choose a profile image, a cover image, or both.
- Upload the file.
To remove an image, delete it from the same place. The competition or group goes back to the default icon and band.
An image is uploaded in its own request, separate from saving the rest of the form. Fanzava attaches the new image only after it has stored the file and read it back, so a competition or group never points at a file that is not there.
Changes and caching
Section titled “Changes and caching”A new image shows on cards and pages as soon as it is attached. The public competition page can take up to 15 minutes to pick up a new cover, so the social preview of a shared link can lag behind a change.
Uploading by request
Section titled “Uploading by request”The dashboard does this for you. If you are building against the platform, an image is set and removed with one request each, on the competition or the group:
| Action | Request |
|---|---|
| Set an image | POST /api/v1/hubs/:hubId/competitions/:competitionId/images/:kind |
| Remove an image | DELETE /api/v1/hubs/:hubId/competitions/:competitionId/images/:kind |
Groups have the same pair of routes, on the group instead of the competition. In every route, :kind is profile or cover. The file limits above apply to the upload.
Was this page helpful?