Skip to content

Commit

Permalink
Merge pull request #1351 from gexin1/fix-clear-temp-image
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger committed Oct 4, 2022
2 parents 46a1221 + 9cffd0e commit 7692bff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/renderer/src/render-media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,11 @@ export const renderMedia = ({
if (!options?.downloadMap) {
cleanDownloadMap(downloadMap);
}

// Clean temporary image frames when rendering ends or fails
if (outputDir && fs.existsSync(outputDir)) {
deleteDirectory(outputDir);
}
});

return Promise.race([
Expand Down

1 comment on commit 7692bff

@vercel
Copy link

@vercel vercel bot commented on 7692bff Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.