An open API service indexing awesome lists of open source software.

https://github.com/vpakarinen2/convertly

Convert images between multiple formats (JPG/JPEG, PNG, WebP).
https://github.com/vpakarinen2/convertly

cli command-line ffmepg image-conversion image-converter image-processing python python3 windows

Last synced: 12 days ago
JSON representation

Convert images between multiple formats (JPG/JPEG, PNG, WebP).

Awesome Lists containing this project

README

          

# Convertly 🔃

Convert images between multiple formats like PNG, and JPG/JPEG.

## Requirements

- Python 3.11+
- `ffmpeg` installed and available on `PATH`

## Install FFmpeg (Windows)

```powershell
winget install Gyan.FFmpeg
ffmpeg -version
```

## Setup

```powershell
py -m ensurepip --upgrade
py -m pip install -e .
```

Add `convertly` in the current session:

```powershell
$env:Path = $env:Path + ";" + (Resolve-Path .\Scripts)
```

## Usage

```powershell
convertly convert --input "./input" --output "./output" --format jpeg --skip-existing --quality 100
```

Put all the images in the ``--input`` directory.

## Troubleshooting
If you get an error 'ffmpeg not found', use `where.exe` to find it on `PATH`:

```powershell
where.exe ffmpeg
```

## Support
If you find this project valuable, consider supporting my work:

[![Buy Me A Coffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/vpakarinen)
[![Ko-Fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/vpakarinen)

## Author

Ville Pakarinen (@vpakarinen2)