Function getImageAsset

  • Tries to resolve a (partial) image asset document with as much information as possible, from any inferrable structure (id, url, path, image object etc)

    Parameters

    Returns SanityImageAsset

    Image asset document

    UnresolvableError Throws if passed image source could not be resolved to an asset ID