Error using image2gif.py when resizing animated GIF

I am doing a project in which I need to resize an animated GIF. I am using Python and images2gif.py ( here ). It works well with many Gif images, but when I test with this image an error occurs here :

ValueError: operands could not be broadcast together with shapes (96,100,4) (96,100,3) 

My code is here:

 import Image import images2gif frames = images2gif.readGif("Images/image2.gif", False) for frame in frames: frame.thumbnail((100,100), Image.ANTIALIAS) images2gif.writeGif('Images/image2out.gif', frames) 
+4
source share

All Articles