home.social

#gifski — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #gifski, aggregated by home.social.

fetched live
  1. This one took a bit longer than expected to publish, in particular because I wanted to solve a few things automatically: proper support for skin color variants, and having the gifs being automatically shrunk in number of frames to match slack's limits.

    The former led to writing a lot of jq (initially awk).

    And for the latter, I even wrote a gifski patch to add functionality I needed, and drop frames automatically : github.com/ImageOptim/gifski/p cc @kornel

    Now all of this is repeatable and the set can be updated when Google releases new Noto Animated emojis.

    #gifski #RustLang

  2. Here is the magic incantation I've found creates the best animated gifs for use as emojis in Slack. Powered by @kornel 's gifski:

    ffmpeg -i INPUT.gif -vf "format=yuv420p"  -f yuv4mpegpipe - | gifski -W 128 -H 128 -Q 55 -o OUTPUT-compressed.gif -

    Make quality -Q vary until size is just below ~128k. For some reason, Slack's limit is not exactly 217, but not 128000 either.

    #ffmpeg #gifski #gifsicle #RustLang #SlackMoji