This is a package that converts images to a specified format. It searches recursively into a directory and converts all images.
pip3 install convertify
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=``
from convertify import Convertify
Convertify.convert('<your-path-goes-here>')
- source =
<given-path>
- destination = "../converted-images/"
- from = {All file types}
- to = "webp"
- recursive = True
convertify --source=/path/to/your/images/ --destination=/path/to/your/destination/ --from=png --to=webp --recursive=false
from convertify import Convertify
Convertify.convert(source_path='<your-source-path-goes-here>',
destination_path='<your-destination-path-goes-here>',
from_type=None,
to_type='webp',
recursive=True