Nodes/ComfyUI-AusBoss/Film Grain πŸ†Ž
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.

By ausbossΒ·Created 4 months agoΒ·Updated about 5 hours agoΒ· 163
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)

NameTypeDefaultDescription
imageIMAGEThe picture or video frames to add grain to.
amountFLOAT0.250–1How strong the grain is. 0 adds none; 0.25 is a clearly visible film look.
sizeFLOAT1.00.5–4How big each grain is, in pixels of this picture. Raise it for a big picture or a coarse film look.
roughnessFLOAT0.500–10 is even, soft grain. Higher mixes in finer grain that bunches up unevenly, like real film.
colorFLOAT0.000–10 is black-and-white grain. Higher gives each colour its own grain, like colour film.
movingBOOLEANtrueFor a video. On: new grain on every frame, so it moves like film. Off: every frame gets the same grain.
seedINT00–18446744073709550000Picks the grain pattern. The same seed always gives the same grain.
maskoptMASKOptional. Grain goes only where the mask is white.
previewoptBOOLEANtrueShow this node's result on its face. Off skips writing the preview file to ComfyUI's temp folder.
autooptBOOLEANfalseOn: 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_amountoptFLOAT1.000–4Used while Auto is on. 1 is Auto's pick; 1.5 is half as strong again.
auto_sizeoptFLOAT1.000.25–4Used while Auto is on. 1 is Auto's pick; 2 is grain twice as big.
grain_fromoptIMAGEOptional. 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_coloroptFLOAT1.000–4Used while Auto copies grain from a picture. 1 is the copied colour; 0 makes it black-and-white grain.

Outputs (1)

NameTypeDescription
imageIMAGEThe picture or video frames with grain, at the same size.