Add gifify formula

Updated formula for #25072
Can you please add a test that tests basic operation of the formula? You can see the `cmake` formula for an example of a formula with a good test. There are image test fixtures in Library/Homebrew/test/fixtures you can access like `test_fixtures("test.png")`.