A shell script that creates an animated GIF/MP4 showing the revisions of a file hosted by Wikimedia Commons.
./wikimedia-file-history-gif [WIKIMEDIA_FILE] [OUTPUT] [IMAGE_SIZE]
Below is an example of the script being run on the following file: https://commons.wikimedia.org/w/index.php?title=File:2022_Russian_invasion_of_Ukraine.svg&offset=&limit=250#filehistory
./wikimedia-file-history "File:2022 Russian invasion of Ukraine.svg" example-ukraine.mp4 500x336
A GIF can also be generated by changing the output extension from "mp4" to "gif".
example-ukraine.mp4
Source: "2022 Russian Invasion of Ukraine" by Wikimedia Commons contributors (CC BY-SA 4.0) as of 2022-03-05 15:00:00