Upscale options including the source image and desired scale.
A promise resolving to the upscale result with the higher-resolution image.
When the resolved provider does not implement image upscaling.
When no provider can be determined or credentials are missing.
const result = await upscaleImage({
provider: 'stability',
image: 'https://example.com/lowres.jpg',
scale: 4,
});
console.log(result.image.dataUrl);
Upscales an image using a provider-agnostic interface.
Resolves credentials via
resolveMediaProvider(), initialises the matching image provider, converts the input image to aBuffer, and dispatches to the provider'supscaleImagemethod.