Processing a gif file can consume large amounts of memory causing the container to crash. As a safety precaution, don't output to gif either. Any attempt to output to gif will fallback to jpg.