providerplaneai
    Preparing search index...
    • Resolves a reference image URL or Data URI into a Buffer of bytes. Decodes base64 Data URIs directly, or fetches remote images if not a Data URI.

      Parameters

      • url: string

        URL or Data URI of the image

      Returns Promise<Buffer<ArrayBufferLike>>

      Promise that resolves to a Buffer containing the image bytes

      Error if the Data URI is invalid or fetching the remote image fails