Cropped Forsed Size Parameters [LP]
Pinning Inpaint Crop to an exact resolution
- cropped_size_parameters
If you searched for "forced" and landed here - you found the right node. "Forsed" is the pack author's own spelling in the actual node class name, not a typo you're making; worth knowing so you don't second-guess yourself digging through the node list. What it does is the simplest of the four sizing-parameter nodes in this pack: skip all the mask-aspect calculation entirely and pin the crop to an exact width and height, every time.
What it plugs into and why you'd pick it
InpaintCrop-LP accepts a bundle of sizing parameters through a dedicated pin, and this node produces one of four flavors of that bundle. Where CroppedAspectSizeParameters-LP looks at your mask's shape to decide a good resolution, this one ignores the mask's geometry completely - you tell it exactly what size you want, and that's what you get, regardless of what shape or size the masked region actually is. That's the right call whenever the fragment needs to land at one fixed resolution no matter what - say, feeding a model or a downstream pipeline step that only accepts one specific input size, or keeping every crop in a batch job at a consistent resolution so results are directly comparable.
The inputs and outputs that matter
- cropped_width / cropped_height - both INT, default
1024, range 0–16384. The exact dimensions the crop will be resized to. - Output - cropped_size_parameters (
CROPPEDSIZEDATA), wired intoInpaintCrop-LP's sizing pin.
Notice there's no mask input on this node at all - that's not an oversight, it's the whole point. Unlike its three siblings, forced sizing doesn't need to look at the mask's shape to decide anything.
How to install it
ComfyUI Manager: search "ComfyUI Level Pixel" or ComfyUI-LevelPixel, install, restart - updates automatically via Manager's "Update ALL." Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/LevelPixel/ComfyUI-LevelPixel.git
Restart ComfyUI. No models, no extra dependencies.
Common issues & troubleshooting
Your crop is badly distorted compared to the masked region's actual shape. That's expected behavior, not a bug - a forced size ignores the mask's aspect ratio entirely, so a tall narrow mask forced into a square cropped_width/cropped_height will stretch. If preserving the mask's natural proportions matters, use CroppedAspectSizeParameters-LP instead.
You wired this in but nothing changed. Confirm cropped_size_parameters is actually connected to InpaintCrop-LP's dedicated sizing input pin - this node's output is an opaque bundle type meant for that one connection, not something to inspect directly.
You want a fixed size, but scaled relative to the mask rather than an absolute pixel value. That's a different node's job - CroppedFreeSizeParameters-LP scales relative to the mask's own bounding box via a rescale factor, rather than pinning to an absolute width and height the way this node does.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| cropped_width | INT | 10240–16384 | — |
| cropped_height | INT | 10240–16384 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| cropped_size_parameters | CROPPEDSIZEDATA | — |