Function getIdFromString

  • Tries to cooerce a string (ID, URL or path) to an image asset ID

    Parameters

    • str: string

      Input string (ID, URL or path)

    Returns string

    string

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