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

https://github.com/fatonsopa/convertify

Convert multiple Images to a specific format (e.g. webp) using Python
https://github.com/fatonsopa/convertify

convert-images image-converter pagespeed python3 pythonforseo seotools

Last synced: 3 months ago
JSON representation

Convert multiple Images to a specific format (e.g. webp) using Python

Awesome Lists containing this project

README

          

# Description

This is a package that converts images to a specified format. It searches recursively into a directory and converts all images.

# Install
```python
pip3 install convertify
```

# Basic usage
```python
convertify --source=/path/to/your/images/
```
Converted images will be saved one path behind the source, in a directory named "converted-images". You can change destination path by specifyind the path via ```--destination=``

```python
from convertify import Convertify
Convertify.convert('')
```

## Default Options:
- **source** = ``````
- **destination** = "../converted-images/"
- **from** = {All file types}
- **to** = "webp"
- **recursive** = True

# Advanced usage
```python
convertify --source=/path/to/your/images/ --destination=/path/to/your/destination/ --from=png --to=webp --recursive=false
```

```python
from convertify import Convertify
Convertify.convert(source_path='',
destination_path='',
from_type=None,
to_type='webp',
recursive=True
```