This repository contains two simple Python scripts for converting between image formats and converting GIF files to MP4 videos. These scripts utilize popular Python libraries, MoviePy and ImageIO.
-
GIF to MP4 Converter: Convert GIF files to MP4 videos using MoviePy.
-
Images to GIF Converter: Convert a series of images (e.g., PNG, JPG, JPEG, GIF, BMP) into a GIF animation using ImageIO.
Before using these scripts, you'll need to have the following installed:
To convert a GIF to an MP4 video, run the following command:
python gif_to_mp4.pyFollow the prompts to provide the input GIF path and the output MP4 path.
To create a GIF animation from a directory of images, run the following command:
python images_to_gif.pyFollow the prompts to provide the input images directory and the output GIF path.
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- MoviePy
- ImageIO