Skip to content

DOC: Use video files for saving animations #27797

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

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Feb 16, 2024

PR summary

Because the default is Base64-encoded frames of PNGs, this should save a substantial amount of space in the resulting docs. We may want to increase the bitrate slightly, though most of the videos seem clear enough to me.

This currently depends on sphinx-gallery/sphinx-gallery#1243 and sphinx-contrib/video#36.

These results are probably on the upper end, depending on if we change the bitrate, but disk usage is reduced substantially:

485M	html/
377M	doc/build/html/

That's 108M of savings, or 22% of the original disk usage.

PR checklist

@QuLogic QuLogic added this to the v3.9.0 milestone Feb 16, 2024
@github-actions github-actions bot added the Documentation: build building the docs label Feb 16, 2024
@timhoffm
Copy link
Member

timhoffm commented Apr 3, 2024

Bumping to 3.10 as the needed PR sphinx-gallery/sphinx-gallery#1243 is not yet in.

Because the default is Base64-encoded frames of PNGs, this should save a
substantial amount of space in the resulting docs.
@QuLogic QuLogic marked this pull request as ready for review July 26, 2024 01:53
@QuLogic
Copy link
Member Author

QuLogic commented Jul 26, 2024

@QuLogic QuLogic modified the milestones: v3.10.0, v3.9.2 Aug 9, 2024
@ksunden ksunden merged commit 1e98377 into matplotlib:main Aug 9, 2024
40 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Aug 9, 2024
@QuLogic QuLogic deleted the doc-anim-videos branch August 9, 2024 20:31
ksunden added a commit that referenced this pull request Aug 9, 2024
…797-on-v3.9.x

Backport PR #27797 on branch v3.9.x (DOC: Use video files for saving animations)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: build building the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants