Add a gallery image to a Vultr Marketplace app using the Vultr Console or Vultr API to showcase app screenshots on the application's public landing page.
Gallery images appear as screenshots and featured images on the application's public landing page.
This guide explains how to add a gallery image using the Vultr Console or the Vultr API.
Gallery images must meet the following requirements:
422 error ("Not wide enough...") for narrower images.Click Marketplace in the Vultr Console's left-hand menu.
Click the application name to open the Edit App screen.
Click the Gallery tab.
Click the Upload Graphic button and choose an image to upload. Verify that a thumbnail appears in the Gallery tab after the upload completes.
Send a POST request to the Add Image to Marketplace App endpoint. Replace {app-id} with the app's ID and BASE64-IMAGE with a base64-encoded image.
$ curl "https://api.vultr.com/v2/marketplace/apps/{app-id}/images" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"b64_image": "BASE64-IMAGE"
}'
A successful request returns an HTTP 201 Created response with the image's id, filename, and url.