Skip to content
Advertisement

Can’t duplicate .gif file in my folder. Will only give the first frame of the gif for each duplicate that is created

JavaScript

Advertisement

Answer

If you just want to make 9 identical copies of image.gif, called copy-1.gif through copy-9.gif you don’t need PIL/Pillow at all – you are just copying a file and the fact it contains an image is irrelevant, so you can simply use shutil.copy:

JavaScript

If you list the results:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement