| custom_path | STRING | | Optional: absolute path to an image (or a linked string). Priority: input_image > custom_path > image combo. The native preview follows it (live when typed, after execution when linked).
---
Опционально: абсолютный путь к изображению (или линк со строкой). Приоритет: input_image > custom_path > комбо image. Нативное превью следует за ним (живо при вводе, после выполнения — если линком). |
| image | COMBO | | Select / upload an image from the input directory (used when input_image is not connected).
---
Выберите / загрузите изображение из папки input (используется, если не подключён input_image). |
| resize_mode | COMBO | target_percentage | Size mode: percentage / megapixels / width / height / both / longest / shortest.
---
Режим размеров: проценты / мегапиксели / ширина / высота / оба / longest / shortest. |
| target_percentage | FLOAT | 100.00–1000 | Target size as % of original (100=same, 50=half, 200=double).
---
Целевой размер в % от исходного (100=тот же, 50=половина, 200=двойной). |
| target_megapixels | FLOAT | 1.00.1–100 | Target megapixels (MP). Used in target_megapixels mode.
---
Целевые мегапиксели (MP). Используется в режиме target_megapixels. |
| target_width | INT | 10241–8192 | Target width (px). Also = the side for longest/shortest modes.
---
Целевая ширина (px). Также = сторона для longest/shortest. |
| target_height | INT | 10241–8192 | Target height (px).
---
Целевая высота (px). |
| fit_mode | COMBO | crop | Scaling strategy: stretch (distort to exact target) / crop (proportional cover + cut) / pad (proportional contain + bars) / proportional (proportional fit inside the target, output = resulting size, no bars, no crop).
---
Стратегия: stretch (искажить в точную цель) / crop (пропорционально закрыть и обрезать) / pad (пропорционально вписать с полями) / proportional (пропорционально вписать в цель, выход = получившийся размер, без полей и обрезки). |
| crop_position | COMBO | center | Anchor for crop/pad (9 positions).
---
Якорь для crop/pad (9 позиций). |
| interpolation | COMBO | lanczos | Interpolation. RGBA auto-uses premultiplied alpha.
---
Интерполяция. RGBA автоматически с premultiplied alpha. |
| resize_if_larger | COMBO | none | Pure trigger: resize ONLY if the image is LARGER than target; otherwise the original size is kept. Triggered → resize per fit_mode. none = always resize.
---
Чистый триггер: ресайз ТОЛЬКО если изображение БОЛЬШЕ цели, иначе сохраняется исходный размер. Сработало → ресайз по fit_mode. none = ресайз всегда. |
| resize_if_smaller | COMBO | none | Pure trigger: resize ONLY if the image is SMALLER than target; otherwise the original size is kept. Triggered → resize per fit_mode. none = off.
---
Чистый триггер: ресайз ТОЛЬКО если изображение МЕНЬШЕ цели, иначе сохраняется исходный размер. Сработало → ресайз по fit_mode. none = выкл. |
| pad_image_color | COMBO | white | Padding color for the image (pad).
---
Цвет полей изображения (pad). |
| pad_mask_color | COMBO | black | Padding color for the mask (pad).
---
Цвет полей маски (pad). |
| invert_mask | BOOLEAN | false | Invert the mask before processing.
---
Инвертировать маску перед обработкой. |
| flip_mode | COMBO | none | Mirror AFTER resize: none / horizontal / vertical.
---
Отражение ПОСЛЕ ресайза: none / horizontal / vertical. |
| angle_degrees | INT | 0-360–360 | Rotation angle (counter-clockwise), applied BEFORE resize.
---
Угол поворота (против часовой), до ресайза. |
| rotation_preset | COMBO | none | Quick angle; overrides angle_degrees.
---
Быстрый угол; переопределяет angle_degrees. |
| divisible_by | INT | 00–128 | Round sizes to a multiple (0=off).
---
Кратность размеров (0=выкл). |
| device | COMBO | cpu | Compute device: cpu / cuda.
---
Устройство: cpu / cuda. |
| input_imageopt | IMAGE | | Optional image tensor (priority over the file combo).
---
Опциональный тензор изображения (приоритет над файловым комбо). |
| maskopt | MASK | | Optional input mask (priority over the alpha-derived mask).
---
Опциональная входная маска (приоритет над альфа-маской). |