The Wedia system can deliver images derivatives at scale through a CDN with a simple API.
...
uuid: The unique string-encoded identifier for the asset. Recommended for enhanced security.
type: The asset library type (e.g., asset, product_images). Not recommended for public URLs.
id: The unique integer identifier within the asset library.
basename: The desired base name for the output image, useful for SEO purposes.
suffix: (Optional) Specifies the output file format. If omitted or set to .auto, the system selects the best format based on browser capabilities.
...
Type: t=setbg
Description: Sets or replaces the background color of an image.
Parameters:
color (required): The desired HTML named color background color (e.g., black, white).
replace: The color to replace (default replaces transparent pixels).
fuzz: Tolerance level for color replacement (default is 1%).
Examples:
Force Tomato Background for a Transparent Source:
https://club-wed.wedia-group.com/api/wedia/dam/transform/brandcenter/2ruwheefedknpfssojzuws6wwcw/thumb.webp?t=setbg&color=Tomato
...
Replace White Background with Black:
...