Sort Me API
  • 👋Sort Me Documentation
  • API Methods
    • ⚰️Problems
    • 🚲Submissions
    • 🏆Contests
    • 📚Archives
    • ❤️Users
    • 🛰️Websocket
      • /listenSubmission
      • /contestEvents
    • 👾Miscellaneous
  • Tricky moments
    • 🛂Account limits
    • 🔑Authorization
    • 🗃️Pagination
    • 🈂️Localization
    • 🖼️Images
Powered by GitBook
On this page
  • Upload new image
  • Get image
  1. Tricky moments

Images

Sort Me hosts their images, such as avatars or problem legend illustrations, on their own server. It converts images to WebP and creates multiple formats for displaying on a different parts of website.

Upload new image

POST https://sort-me.org/images/upload

Pass the image in document form-data field.

{
    "id": "04c1bec1-e71a-4a73-b023-267db3a4dc30"
}

Get image

GET https://sort-me.org/images/get/{id}

Get image; if possible, resize it to desired size.

For now, supported sizes are:

avatar - 128x128, cropped to square avatar-big - 512x512, cropped to square

If you provide unknown size or not provide it at all, image will be returned in their default aspect ratio, resized to 1600px or less in width. This may change in future.

Images are always returned in WebP format.

Path Parameters

Name
Type
Description

id*

string

UUID of previously uploaded picture.

Query Parameters

Name
Type
Description

size

string

Size of picture

{"error": "image not found"}

Last updated 1 year ago

🖼️