- Media API
- Transformations
- Effect
- posterize
posterize
The posterize transformation reduces the number of color levels in an image, creating a bold, graphic poster-like effect with limited color palette. Perfect for creating artistic posters, vintage effects, or reducing image complexity.
Serving Content via CDN
The Media API is a CDN-based service that serves transformed images via GET requests. When you request a transformed image URL, the transformation is applied dynamically on the first request and then cached for subsequent requests.
URL Pattern
https://media.vyso.io/posterize:levels=LEVELS/ASSET_ID.jpgExamples
Subtle Posterization (6 Levels)
curl -i GET https://media.vyso.io/posterize:levels=6/ASSET_ID.jpgMedium Posterization (4 Levels)
curl -i GET https://media.vyso.io/posterize:levels=4/ASSET_ID.jpgStrong Posterization (3 Levels)
curl -i GET https://media.vyso.io/posterize:levels=3/ASSET_ID.jpgExtreme Posterization (2 Levels)
curl -i GET https://media.vyso.io/posterize:levels=2/ASSET_ID.jpgVery Heavy Reduction (2-Bit)
curl -i GET https://media.vyso.io/posterize:levels=1/ASSET_ID.jpgOn the first request, you'll receive a X-Cache: MISS header while the transformation is applied and cached. Subsequent requests will return X-Cache: HIT.
Parameters
levelsREQUIREDNumber of color levels per channel. Accepted values:
- Range: 1 to 8+
8- Subtle effect, maintains detail6- Moderate posterization3-4- Strong poster effect1-2- Extreme color reduction- Lower values create more dramatic, graphic posters
Response
The API returns a posterized version of the image with reduced color palette and bold blocks of color. The response format depends on the format of the asset stored in the Vyso asset cloud.
Content-Type: Determined by the stored asset format (e.g., image/jpeg, image/png)