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
- Host: GitHub
- URL: https://github.com/fatonsopa/convertify
- Owner: fatonsopa
- License: mit
- Created: 2020-06-16T22:03:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-03T08:39:41.000Z (over 4 years ago)
- Last Synced: 2025-05-30T15:58:07.821Z (4 months ago)
- Topics: convert-images, image-converter, pagespeed, python3, pythonforseo, seotools
- Language: Python
- Homepage:
- Size: 3.99 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```