providerplaneai
    Preparing search index...
    • Resolves a reference image URL or Data URI into bytes.

      Data URIs are decoded locally. Remote URLs are validated against SSRF-style unsafe targets before fetching, then streamed with configurable size and timeout limits.

      Parameters

      • url: string

        Remote image URL or Data URI.

      Returns Promise<Buffer<ArrayBufferLike>>

      Image bytes.

      When the Data URI is invalid, the URL is unsafe, or the remote fetch fails.