Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Save last screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
darthdeus committed Sep 19, 2023
1 parent f574e75 commit aa4dfad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion comfy-wgpu/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,12 @@ impl WgpuRenderer {
resized.save(name).unwrap();

if get_frame() > 60 {
resized.save(format!("{}/{}.png", screenshots_dir, example_name)).unwrap();
resized
.save(format!(
"{}/{}.png",
screenshots_dir, example_name
))
.unwrap();

let ffmpeg_command = "ffmpeg";
let framerate = "30";
Expand Down

0 comments on commit aa4dfad

Please sign in to comment.