SongGuess
    Preparing search index...
    interface ImagesBinding {
        hosted: HostedImagesBinding;
        info(
            stream: ReadableStream<Uint8Array<ArrayBufferLike>>,
            options?: ImageInputOptions,
        ): Promise<ImageInfoResponse>;
        input(
            stream: ReadableStream<Uint8Array<ArrayBufferLike>>,
            options?: ImageInputOptions,
        ): ImageTransformer;
        text(content: string, options: TextOptions): ImageTransformer;
    }
    Index

    Access hosted images CRUD operations

    • Get image metadata (type, width and height)

      Parameters

      • stream: ReadableStream<Uint8Array<ArrayBufferLike>>

        The image bytes

      • Optionaloptions: ImageInputOptions

      Returns Promise<ImageInfoResponse>

      ImagesError with code 9412 if input is not an image

    • Begin applying a series of transformations to an image

      Parameters

      • stream: ReadableStream<Uint8Array<ArrayBufferLike>>

        The image bytes

      • Optionaloptions: ImageInputOptions

      Returns ImageTransformer

      A transform handle

    • Begin applying a series of transformations to text

      Parameters

      • content: string

        string to be rendered

      • options: TextOptions

        font, optional color and size to use in rendering text

      Returns ImageTransformer

      A transform handle