https://github.com/offerrall/bulk2avif
https://github.com/offerrall/bulk2avif
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/offerrall/bulk2avif
- Owner: offerrall
- License: mit
- Created: 2025-09-04T14:29:49.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-04T16:12:53.000Z (10 months ago)
- Last Synced: 2025-09-04T18:12:16.772Z (10 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Bulk2AVIF
**Convert all photos in a folder to AVIF format using FFmpeg.**
## What it does
This script automatically finds all images in the current folder (PNG, JPG, JPEG, WebP, BMP, TIFF) and bulk converts them to AVIF format. Original images are automatically deleted after successful conversion.
AVIF is a modern format that offers up to 50% smaller file sizes than JPEG with better quality.
## Requirements
- **FFmpeg** installed on your system and in your PATH.
- Windows: Download from [ffmpeg.org](https://ffmpeg.org/download.html)
- macOS: `brew install ffmpeg`
- Linux: `sudo apt install ffmpeg` or `sudo yum install ffmpeg`
## Usage
1. Put `bulk2avif.py` in the folder with your photos
2. Run:
```bash
python bulk2avif.py
```
**⚠️ WARNING:** Original images are automatically deleted after conversion. Backup if needed.
## Example
```
$ python bulk2avif.py
Converting 15 images to AVIF...
✓ photo1.jpg
✓ photo2.png
✓ vacation.jpeg
✗ corrupted.png
```
Simple, fast, automatic.
## License
MIT License.