-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
APNG frames are cut off when saving #6672
Copy link
Copy link
Closed
Description
When exporting animated PNG files as APNG, based of a PNG image sequence, it cuts 2 frames in half.
Here is the code I use:
import PIL
from PIL import Image as Img
from os import walk
mypath="original character folder"
#import files:
files = []
for (dirpath, dirnames, filenames) in walk(mypath):
files.extend(filenames)
break
#import as PIL image:
images = []
for f in files:
images.append(Img.open(mypath+"/"+f))
#Export as APNG:
images[0].save("exportfolder/exportimage.apng", disposal=2, save_all=True,
append_images=images[1:], loop=0,
duration=200, optimize=False, lossless=True)The original images contain all frames. When exported as gif you can see all frames:

And this is what it looks like exported as animated APNG:

Here you can use this folders and place them in the project folder to test it out:
original character folder and export folder containing apng export file.zip
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels