Add gifify formula

Updated formula for #25072