GifProgressor is a tool to add a progress bar to gif images, which can prompt the progress.
Import and instant a progressor object like this
from GifProgressor import Progressor, Position
progressor = Progressor()
Set position of progress bar
progressor.setPosition(Position.topLeft)
Set color
progressor.setColor('#FF0000FF')
Or with tuple
progressor.setColor((255, 0, 0, 255))
Set width of progress bar
progressor.setWidth(10)
Handle with a gif image
result = progressor.handle('test.gif')
Save the new gif
if result:
progressor.save('output.gif')
- PIL for gif image handling
- numpy for progress bar generation