Skip to main content

A Python package to make gif from images and videos

Project description

pygif

A Python package to make gif from images and videos

Usage

Following methods can be utilized to make gif

from inrgif import images_to_gif, video_to_gif
import glob
from PIL import Image
#from video to gif..
obj = video_to_gif.make_gif(video_path="videoplayback.mp4",duration = 400, loop = 0 )
images_to_gif.save(obj,"video.gif")

#from folder all images.
#here folder name is test
bytesio_object= images_to_gif.make_gif(frame_folder="test",duration = 400, loop = 0)
images_to_gif.save(bytesio_object,"folder.gif")

#from PIL objects to gif..
frames = [Image.open(image) for image in glob.glob(f"{'test'}/*")]
bytesio_object = images_to_gif.frame_gif(frames=frames,duration = 400, loop = 0)
images_to_gif.save(bytesio_object,"frames.gif")

To uninstall execute following..

pip uninstall inrgif

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inrgif-1.0.3.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file inrgif-1.0.3.tar.gz.

File metadata

  • Download URL: inrgif-1.0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.4

File hashes

Hashes for inrgif-1.0.3.tar.gz
Algorithm Hash digest
SHA256 acc17fe17cab3e48949e3b74bfad246913617ee83db2fbd0b25f491d94a17730
MD5 b8dae6807abf66180d1e7d28fa958187
BLAKE2b-256 bf86bf089d63be174cc3f00481804d839fc24bdb888da907be5754aaf3f6fd75

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page