Library Images
Images uploaded once and reused wherever they fit, grouped in library image categories -- the portal's image library. Every library image has a type, fixed when it is uploaded:
mask-- a cut-out shape, used as the mask of an artwork or mockup layer.image-- any other picture: backgrounds, thumbnails, reference images, map markers.
A category holds one type only. Library images are sent as a pre-signed upload (upload_id) or a url -- not as multipart -- in the formats the portal's library takes:
| Type | Formats |
|---|---|
image | PNG, JPEG, GIF, WebP, SVG |
mask | PNG, WebP, SVG -- a mask needs transparency, so JPEG and GIF are refused |
An SVG must have a viewBox; it is sanitized, kept as a vector and ready at once.
Endpoints
GET /library-image-categories— List library image categoriesPOST /library-image-categories— Create a library image categoryGET /library-image-categories/{id}— Get a library image categoryGET /library-images— List library imagesPOST /library-images— Upload a library imageGET /library-images/{id}— Get a library imageDELETE /library-images/{id}— Delete a library image