[]
        
(Showing Draft Content)

convertImageToFormat

Function: convertImageToFormat()

function convertImageToFormat(imageUrl, targetMimeType): Promise<Blob>;

Converts an image from a given URL to a specified format with the provided MIME type.

Parameters

imageUrl

string

The URL of the image.

targetMimeType

ImageMimeType

The desired MIME type for conversion.

Returns

Promise<Blob>

  • A Blob object containing the converted image.