Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Download and install the PIL python image Library. This library is used to creat

ID: 3571968 • Letter: D

Question

Download and install the PIL python image Library. This library is used to create and/or modify picture (image) files. See the attached image file, animation.gif animation.gif This file is an animated gif file. It was made by creating 30 files in a folder called images. These files were named consecutive names such as pic_01.gif, pic_02.gif, pic_03.gif etc. Then using Gimp, the 30 pictures were loaded as 30 layers in gimp and that was converted to one gif file and saved as an animation. You will need to write a python program to create 30 gif files that will use gimp to produce your own animated gif. Do not have it make little boxes like I did, instead heave it make little circles or triangle

Explanation / Answer

open each and every image uniquely from pil library and perform the following code to make it gif

Here import image and its sequences from pil library

import os ,sys
rq = sys.argvector[1]
sa = Image.open(fn)
lagt_dura = rq.info['duration']
totalfr = [border.copy() for border ImageSequence.Iterator(sa)]
totalfr.reverse()

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote