google / gif-for-cli

https://opensource.googleblog.com/2018/06/tenor-gif-for-cli.html
Apache License 2.0
2.93k stars 161 forks source link

Process and play in separate calls #6

Closed marek-saji closed 6 years ago

marek-saji commented 6 years ago

Would be nice to be able to process the image and play it in separate steps.

Use case: Play a gif after an operation. Pasing can be done earlier so that user does not have to wait for celebratory animation.

gif-for-cli --output=yay.cligif "yay" & # probably something like --quiet would be a good idea
PROC_PID=$!

# … do something

# celebrate
wait $PROC_PID
if [ -r yay.cligif ]
then
  gif-for-cli yay.cligif
  rm yay.cligif
fi

Most (all?) of the options would be valid with --output, but not when playing processed gif.

SeanHayes commented 6 years ago

Thanks for the idea, I added a --no-display option.