Compress the gif image.