$.error_ctx
    ) }}
  {{ else }}
    {{ $s.SetInMap "params" "resample_filter" . }}
  {{ end }}
{{ end }}

{{ with .hint | default $meta.hint | default ($ctx.Param "image.hint") }}
  {{ $hint_opts := (slice "picture" "photo" "drawing" "icon" "text") }}
  {{ if not (in $hint_opts . ) }}
    {{ partial "hri/private/utils/options-error" (dict 
      "var" "hint"
      "val" .
      "opts" (delimit $hint_opts ", ")
      "ctx" $.error_ctx
    ) }}
  {{ else }}
    {{ $s.SetInMap "params" "hint" . }}
  {{ end }