to-webp converts JPEG & PNG files to WebP format. That is an image format developed by Google that promises to reduce the image file size by up to 39%.
to-webp faz a conversão de arquivos JPEG & PNG para o formato WebP. Que é um formato de imagem desenvolvido pelo Google que promete reduzir o tamanho do arquivo de imagens em até 39%.
to-webp is available via Composer:
composer require whallysson/to-webp
<?php
// Include the library
require_once __DIR__ . '/vendor/whallysson/to-webp/images.php';
?>
<img alt="image-webp" src="<?= image('path-to-the-image', 800); ?>"/>Please see CONTRIBUTING for details.
Security: If you discover any security related issues, please email whallyssonallain@gmail.com instead of using the issue tracker.
Se você descobrir algum problema relacionado à segurança, envie um e-mail para whallyssonallain@gmail.com em vez de usar o rastreador de problemas.
Thank you
- Whallysson Avelino (Developer)
- CodBlog (Team)
- All Contributors (This Rock)
The MIT License (MIT). Please see License File for more information.