 }}


{{ with .resample_filter | default .resampleFilter | default $meta.resample_filter | default $meta.resampleFilter | default ($ctx.Param "image.resampleFilter") | default ($ctx.Param "image.resample_filter") }}
  {{ $filter_opts := (slice "Box" "Lanczos" "CatmullRom" "MitchellNetravali" "Linear" "NearestNeighbor") }}
  {{ if not (in $filter_opts .) }}
    {{ partial "hri/private/utils/options-error" (dict 
      "var" "resample_filter"
      "val" .
      "opts" (delimit $filter_opts ", ")
      "ctx" 