Basically I am using following piece of code to make gif out of images, my images are png
with transparent background but the gif is with black background. I dont know how to make the gif with transparent background.
#gif writer
with io.get_writer('my.gif', mode='I', duration=0.1) as writer:
for filename in file_names:
image = io.imread(filename)
writer.append_data(image)
#writer.close()
where filenames
is an array with all the names of file to be used.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…