[GIF] The optimization algorithm is only applicable to the image of mode="P" or mode="L".

Title says it all