It reads the original JPEG file and animates it in the browser. The file size is smaller and hence download faster. In addition, animated-gif stores 256 colors while JPEG stores in true color.