You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to crop animated GIFs with photologue, it seems that only tooks one frame of the entire animation, converting it in a static image. Cropping images is vital in order to keep layout stable but at the same time, users want to upload animated GIFs as banners, autopromotion purposes and other stuff.
Wikimedia commons can do this up to a certain size of image:
"Due to technical limitations, the limit on Wikimedia Commons is width × height × number of frames ≤ 100 million."
I've never thought of using animated GIFs in Photologue so I'm afraid I am of no help...
Maybe someone else has experience in this domain and can help?
im=Image.open(image)
# Crop each frameframes= []
forframeinImageSequence.Iterator(im):
# processing such as:frame=frame.crop((0, 0, 10, 10))
frames.append(frame)
# Save as GIFom=frames.pop(0) # Get first frameom.info=im.info# Copy metadataimage.file=io.BytesIO()
om.save(image.file, "GIF", save_all=True, append_images=frames, loop=0)
When I try to crop animated GIFs with photologue, it seems that only tooks one frame of the entire animation, converting it in a static image. Cropping images is vital in order to keep layout stable but at the same time, users want to upload animated GIFs as banners, autopromotion purposes and other stuff.
Wikimedia commons can do this up to a certain size of image:
"Due to technical limitations, the limit on Wikimedia Commons is width × height × number of frames ≤ 100 million."
e.g. https://commons.wikimedia.org/wiki/File:Eguzki_eklipsea_timelapsea.gif
Implementing this feature would be awesome but if it is not possible, is there any workaround to avoid this behavior? Thank you!
The text was updated successfully, but these errors were encountered: