Function write_image

Source
fn write_image(frame: &Frame, opts: &FrameExport) -> Result<(), String>
Expand description

Write one rendered frame as PNG / JPG / WebP through ffmpeg (raw RGBA on stdin), resizing to opts.size with opts.resize when the render came out at a different size.