@contentauth/c2pa-js
    Preparing search index...

    Function resolveConfiguredMaxSizeInBytes

    • Resolves the max asset size for a Reader from a Context's SDK config.

      Unlike validateAssetSize, an explicit 0 is rejected instead of falling back to DEFAULT_MAX_SIZE_IN_BYTES, since the caller asked for a specific limit.

      Parameters

      • sdkConfig: SdkConfig | undefined

        SDK config from a Context, if any.

      • defaultMaxSizeInBytes: number

        The platform's limit, used when maxSizeInBytes is unset.

      Returns number

      The limit to pass to validateAssetSize.

      If the configured maxSizeInBytes isn't a finite, positive number.