Skip to content

fix: embed the animation as a GIF instead of a <video> tag - #14

Merged
madrisan merged 1 commit into
mainfrom
docs/animate-gif
Sep 17, 2026
Merged

madrisan merged 1 commit into
mainfrom
docs/animate-gif

Conversation

@madrisan

Copy link
Copy Markdown
Owner

GitHub's Markdown renderer strips

  • hadcrut5_animate.py: pick the writer from --outfile's extension (PillowWriter for .gif, FFMpegWriter for .mp4 as before), so GIF export needs no extra system dependency beyond Pillow (already pulled in by Matplotlib).
  • README: embed the GIF via standard image Markdown instead of the
  • plots.sh: generate the .gif instead of the .mp4.
  • Drop the now-unused plots/HadCRUT5-1880-1920-animation.mp4 and add the .gif in its place.

GitHub's Markdown renderer strips <video>/<source> tags for
repo-hosted files (it only allows inline video playback for files
uploaded through its own UI), so the previously embedded MP4 never
rendered in the README.

- hadcrut5_animate.py: pick the writer from --outfile's extension
  (PillowWriter for .gif, FFMpegWriter for .mp4 as before), so GIF
  export needs no extra system dependency beyond Pillow (already
  pulled in by Matplotlib).
- README: embed the GIF via standard image Markdown instead of the
  <video> tag.
- plots.sh: generate the .gif instead of the .mp4.
- Drop the now-unused plots/HadCRUT5-1880-1920-animation.mp4 and add
  the .gif in its place.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@madrisan
madrisan merged commit f340f21 into main Sep 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant