📈 Create GIFs from user's GitHub activity graph
- ImageMagick: Convert SVG ➡️ JPG ➡️ GIF
- urfave/cli: CLI framework
You have 2 options:
- Linux/OSX/Windows: Build and run a Docker container with the app. Requires Docker
- Linux: Compile directly from source. Requires Golang and the 2 dependencies (ImageMagick, urfave/cli)
Regardless of how you choose to run the app, clone the repository
git clone https://github.com/CamiloGarciaLaRotta/activitygiffer.git
cd activitygiffer
Build the image
docker build . -t activitygiffer
Create a directory of your choice to store the output GIF.
Run the container with the created directory mounted to /app/out
mkdir out
docker run \
-it \
--rm \
-v $(pwd)/out:/app/out \
activitygiffer -y 2016,2017,2018,2019 camilogarcialarotta
The application will generate a GIF named after the user inside ./out
Install the binary and its dependencies
# install ImageMagick with the command for your distribution
sudo dnf install ImageMagick # Fedora
sudo apt-get install imagemagick # Debian
sudo pacman -S imagemagick # Arch Linux
sudo emerge -av media-gfx/imagemagick # Gentoo
# install urfave/cli and activitygiffer
go install ./...
Run the CLI with a GitHub handle
activitygiffer -y 2016,2018,2019 camilogarcialarotta
The application will generate a GIF named after the user inside ./out