# Scale range (/docs/rules/scale-range)

Reports video clips scaled outside the allowed range.



{/* Generated by scripts/generate-docs.ts. Do not edit. */}

| Property         | Value         |
| :--------------- | :------------ |
| Id               | `scale-range` |
| Category         | Static        |
| Default severity | info          |
| Scope            | `clip`        |

## Options [#options]

| Option | Type     | Default | Description                                          |
| :----- | :------- | :------ | :--------------------------------------------------- |
| `min`  | `number` | `25`    | Lowest allowed scale, in percent. Equal is allowed.  |
| `max`  | `number` | `200`   | Highest allowed scale, in percent. Equal is allowed. |

## Customize it [#customize-it]

Turn the rule on or off in the panel's Rules settings. To change its options, severity or wording, open it with its cogwheel in the rule editor and save: your copy replaces the built-in rule until you revert it. You can also copy the file below into your rules folder as `scale-range.rule.json` and edit it. See [Change a built-in rule](/docs/editor/saving#change-a-built-in-rule).

## Rule file [#rule-file]

```json title="scale-range.rule.json"
{
  "formatVersion": 1,
  "id": "scale-range",
  "name": {
    "en_US": "Scale range",
    "de_DE": "Skalierungsbereich",
    "es_ES": "Intervalo de escala",
    "fr_FR": "Plage d'échelle",
    "it_IT": "Intervallo di scala",
    "ja_JP": "スケールの範囲",
    "ko_KR": "비율 범위",
    "pt_BR": "Intervalo de escala",
    "ru_RU": "Диапазон масштаба",
    "zh_CN": "缩放范围"
  },
  "description": {
    "en_US": "Reports video clips scaled outside the allowed range.",
    "de_DE": "Meldet Videoclips, deren Skalierung außerhalb des zulässigen Bereichs liegt.",
    "es_ES": "Detecta clips de vídeo con una escala fuera del intervalo permitido.",
    "fr_FR": "Signale les éléments vidéo dont l'échelle est hors de la plage autorisée.",
    "it_IT": "Segnala le clip video con una scala fuori dall'intervallo consentito.",
    "ja_JP": "スケールが許容範囲外のビデオクリップを報告します。",
    "ko_KR": "비율이 허용 범위를 벗어난 비디오 클립을 보고합니다.",
    "pt_BR": "Relata clipes de vídeo cuja escala está fora do intervalo permitido.",
    "ru_RU": "Сообщает о видеоклипах, масштаб которых вне допустимого диапазона.",
    "zh_CN": "报告缩放超出允许范围的视频剪辑。"
  },
  "category": "static",
  "scope": "clip",
  "severity": "info",
  "options": {
    "min": {
      "type": "number",
      "default": 25,
      "description": "Lowest allowed scale, in percent. Equal is allowed."
    },
    "max": {
      "type": "number",
      "default": 200,
      "description": "Highest allowed scale, in percent. Equal is allowed."
    }
  },
  "checks": [
    {
      "condition": {
        "all": [
          {
            "field": "clip.disabled",
            "operator": "equals",
            "value": false
          },
          {
            "field": "clip.adjustmentLayer",
            "operator": "equals",
            "value": false
          },
          {
            "field": "clip.scaleAnimated",
            "operator": "equals",
            "value": false
          },
          {
            "any": [
              {
                "field": "clip.scale",
                "operator": "lessThan",
                "value": {
                  "field": "options.min"
                }
              },
              {
                "field": "clip.scale",
                "operator": "greaterThan",
                "value": {
                  "field": "options.max"
                }
              }
            ]
          }
        ]
      },
      "message": {
        "en_US": "Clip \"{clip.name}\" on {clip.track} is scaled to {clip.scale} %, outside the allowed range ({options.min}–{options.max} %).",
        "de_DE": "Clip „{clip.name}“ auf {clip.track} ist auf {clip.scale} % skaliert, außerhalb des zulässigen Bereichs ({options.min}–{options.max} %).",
        "es_ES": "Clip \"{clip.name}\" en {clip.track} está escalado al {clip.scale} %, fuera del intervalo permitido ({options.min}–{options.max} %).",
        "fr_FR": "Élément « {clip.name} » sur {clip.track} est mis à l'échelle à {clip.scale} %, hors de la plage autorisée ({options.min}–{options.max} %).",
        "it_IT": "Clip \"{clip.name}\" su {clip.track} è scalata al {clip.scale} %, fuori dall'intervallo consentito ({options.min}–{options.max} %).",
        "ja_JP": "クリップ「{clip.name}」（{clip.track}）のスケールは{clip.scale} %で、許容範囲（{options.min}～{options.max} %）外です。",
        "ko_KR": "{clip.track}의 클립 \"{clip.name}\"의 비율이 {clip.scale} %로, 허용 범위({options.min}~{options.max} %)를 벗어났습니다.",
        "pt_BR": "Clipe \"{clip.name}\" em {clip.track} está com escala de {clip.scale} %, fora do intervalo permitido ({options.min}–{options.max} %).",
        "ru_RU": "Клип «{clip.name}» на {clip.track} масштабирован до {clip.scale} %, вне допустимого диапазона ({options.min}–{options.max} %).",
        "zh_CN": "{clip.track} 上的剪辑“{clip.name}” 的缩放为 {clip.scale} %，超出允许范围（{options.min}–{options.max} %）。"
      }
    }
  ],
  "data": {
    "scalePercent": "clip.scale",
    "min": "options.min",
    "max": "options.max"
  }
}
```
