Skip to main content
The Image Resizer Filter (image_resizer) is a mAItion Filter, not a Workspace Tool. It runs automatically on every incoming message, before the model ever sees it.

Valves

The max_dimension valve can be edited after install from the filter’s settings in mAItion.

Enabling via ENV

Single-gate opt-in. Set in .env:
FUNCTION_IMAGE_RESIZER_ENABLED=True is the only required condition to install. max_dimension is UI-only and stays at its default until changed from the filter’s settings.
This installs only during first-start initialization — the setup that runs only once, the first time the container boots, gated on a marker file. Setting FUNCTION_IMAGE_RESIZER_ENABLED=True on an already-running instance does not install it retroactively.