ComfyUI Node
Film Grain π
Adds film grain to a picture or a video. The grain is strongest in the midtones and gentler in deep shadows and bright highlights, as on film. Size is the grain's size in pixels, roughness makes it finer and more uneven, and color turns it from black-and-white grain to colour film's. On a video it can move from frame to frame or stay put. An optional mask adds grain only where it is white. The same seed always gives the same grain. With Auto on, it picks the amount and size for the picture; wire a picture into grain from and it copies that picture's grain instead.
Film Grain π
- image
- mask
- grain_from
- image
βamount0.25βΊ
βsize1.0βΊ
βroughness0.50βΊ
βcolor0.00βΊ
βmovingtrueβΊ
βseed0βΊ
βpreviewtrueβΊ
βautofalseβΊ
βauto_amount1.00βΊ
βauto_size1.00βΊ
βauto_color1.00βΊ
Categoryπ AusBoss/Image
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The picture or video frames to add grain to. | |
| amount | FLOAT | 0.250β1 | How strong the grain is. 0 adds none; 0.25 is a clearly visible film look. |
| size | FLOAT | 1.00.5β4 | How big each grain is, in pixels of this picture. Raise it for a big picture or a coarse film look. |
| roughness | FLOAT | 0.500β1 | 0 is even, soft grain. Higher mixes in finer grain that bunches up unevenly, like real film. |
| color | FLOAT | 0.000β1 | 0 is black-and-white grain. Higher gives each colour its own grain, like colour film. |
| moving | BOOLEAN | true | For a video. On: new grain on every frame, so it moves like film. Off: every frame gets the same grain. |
| seed | INT | 00β18446744073709550000 | Picks the grain pattern. The same seed always gives the same grain. |
| maskopt | MASK | Optional. Grain goes only where the mask is white. | |
| previewopt | BOOLEAN | true | Show this node's result on its face. Off skips writing the preview file to ComfyUI's temp folder. |
| autoopt | BOOLEAN | false | On: the node picks Amount and Size for this picture, so the grain looks the same on a small or a big one and matches the grain it already has. Amount and Size then become multipliers of its pick. |
| auto_amountopt | FLOAT | 1.000β4 | Used while Auto is on. 1 is Auto's pick; 1.5 is half as strong again. |
| auto_sizeopt | FLOAT | 1.000.25β4 | Used while Auto is on. 1 is Auto's pick; 2 is grain twice as big. |
| grain_fromopt | IMAGE | Optional. A picture whose grain you like. With Auto on, the node copies its grain: how strong, how big and how colourful. Roughness stays yours. | |
| auto_coloropt | FLOAT | 1.000β4 | Used while Auto copies grain from a picture. 1 is the copied colour; 0 makes it black-and-white grain. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | The picture or video frames with grain, at the same size. |