gmsarates / php-webp-converter
This is a PHP CLI tool to convert all files in a specific folder to webp format
Installs: 66
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gmsarates/php-webp-converter
Requires
- php: >=8.2
This package is auto-updated.
Last update: 2026-01-11 23:36:19 UTC
README
[PT] Esta é uma ferramenta CLI PHP para converter todos os arquivos em uma pasta específica para o formato webp
[EN] This is a PHP CLI tool to convert all files in a specific folder to webp format
Install
Using composer:
composer require gmsarates/php-webp-converter
Usage
cd php-webp-converter/
php webp.php
Optional parameters
| Param | Info |
|---|---|
--path or -P |
Specify the path to the images |
--yes or -Y |
Skip path checking |
--delete or -D |
Skip verification to delete original files |
Example:
php webp.php --path=/var/www/html/project/images -Y -D
Warning: The --delete (or -D) parameter is dangerous! It will delete the original files. Use with caution.