Skip to content

screenshots

Pk11 edited this page Nov 26, 2025 · 1 revision

UniStores can have a screenshots for the apps, this need to be in .png format and shall not have larger resolution than 512x512.

This can be an array of screenshots and their descriptions.

description - description of the screenshot url - ULR of the screenshot image

Example:

    "screenshots":[
               {
                  "description":"Description 1",
                  "url":"https://db.universal-team.net/assets/images/screenshots/universal-updater/gameplay.png"
               },
               {
                  "description":"Description 2",
                  "url":"https://db.universal-team.net/assets/images/screenshots/universal-updater/main-menu.png"
               }
            ],

Sample Python code to convert any image to screenshot that fits for Universal Updater:

#Image resize to fit in 512x512 with keeping aspect ratio and convert to PNG format
import PIL
from PIL import Image

#the maximum size is 512x512
screensize = (512,512)

img = Image.open("something.jpg")
img.thumbnail(screensize)
img.save("something.png")
#Note: Python knows from the file extension that the image needs to be converted to .PNG format.

Clone this wiki locally