Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make video work with container #38

Merged
merged 3 commits into from
Apr 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Provide error message when we cannot build a commit
  • Loading branch information
tobiasgrosser committed Apr 22, 2023
commit 75444ff310f4524859d092548d87917c5cbd2904
9 changes: 8 additions & 1 deletion tools/create-video.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,15 @@ def createImage(data):
cmd = f"{make} -C {dirname} {base_filename}.pdf"
run(cmd, shell=True, stdout=DEVNULL, stderr=STDOUT)
createImageOfPaper(dirname + f"/{base_filename}.pdf")

fullpng = dirname + f"/{base_filename}.pdf-full.png"

if not os.path.exists(fullpng):
print(f"Could not build commit {commit_number} with hash {commit}.")
return

plotStatistics(commit, dirname + "/statistics.png", branch, count)
run(['convert', dirname + f"/{base_filename}.pdf-full.png", '-resize', '3840x2160',
run(['convert', fullpng, '-resize', '3840x2160',
'-background', 'white', '-gravity', 'center', '-extent', '3840x2160',
dirname + f"/{base_filename}.pdf-expanded.png"])
run(['convert', '-gravity', 'SouthEast', dirname + f"/{base_filename}.pdf-expanded.png",
Expand Down