An open API service indexing awesome lists of open source software.

https://github.com/leifgehrmann/wikimedia-file-history

Shell script that creates an animated GIF of a file's revisions hosted by Wikimedia Commons
https://github.com/leifgehrmann/wikimedia-file-history

animated-gif shell-script

Last synced: 5 months ago
JSON representation

Shell script that creates an animated GIF of a file's revisions hosted by Wikimedia Commons

Awesome Lists containing this project

README

          

# wikimedia-file-history

A shell script that creates an animated GIF/MP4 showing the revisions of a file hosted by Wikimedia Commons.

## Usage

```
./wikimedia-file-history-gif [WIKIMEDIA_FILE] [OUTPUT] [IMAGE_SIZE]
```

## Example

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".

https://user-images.githubusercontent.com/3501061/156890237-60b362e7-88f6-46ec-92f4-a2ce734d110d.mp4

Source: ["2022 Russian Invasion of Ukraine"](https://commons.wikimedia.org/w/index.php?title=File:2022_Russian_invasion_of_Ukraine.svg)
by Wikimedia Commons contributors
([CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/deed.en)) as of 2022-03-05 15:00:00