Last active
April 15, 2022 16:29
-
-
Save EricCousineau-TRI/e7535586c7eec48ae4778f955c31ae97 to your computer and use it in GitHub Desktop.
build gifski v1.6.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Only tested on Ubuntu 20.04 | |
# Not sure if `snap` distro incl. video feature. | |
cd /somewhere | |
# rust setup, but don't mess w/ PATH automatically | |
curl https://sh.rustup.rs -sSf -o rustup.sh | |
bash ./rustup.sh --no-modify-path | |
# gifski | |
# Need to use older ffmpeg bindings: https://github.com/ImageOptim/gifski/issues/225 | |
git clone https://github.com/ImageOptim/gifski -b 1.6.4 | |
cd ./gifski | |
source ~/.cargo/env | |
# Need video feature to convert mp4s. | |
cargo build --release --features=video | |
# Copy to wherever $PATH is nice and semi-isolated (easily removable). | |
cp ./target/release/gifski ~/.local/bin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment