PHPackages                             sabioweb/php-cwebp-package - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. sabioweb/php-cwebp-package

ActiveLibrary[Image &amp; Media](/categories/media)

sabioweb/php-cwebp-package
==========================

A pure PHP package for converting images to WebP format

10PHP

Since Dec 2Pushed 5mo agoCompare

[ Source](https://github.com/sabioweb/PHP-Cwebp-package)[ Packagist](https://packagist.org/packages/sabioweb/php-cwebp-package)[ RSS](/packages/sabioweb-php-cwebp-package/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

sabioweb/php-cwebp-package (WebP Converter)
===========================================

[](#sabiowebphp-cwebp-package-webp-converter)

A pure PHP package for converting images to WebP format. This package provides a simple and efficient way to convert JPEG, PNG, GIF, and BMP images to WebP format using PHP's GD extension.

Features
--------

[](#features)

- Convert JPEG, PNG, GIF, and BMP images to WebP
- Configurable quality settings (0-100)
- Lossless conversion mode
- Metadata preservation (when possible)
- Comprehensive error handling
- PSR-4 autoloading
- PHP 8.3+ compatible

Installation
------------

[](#installation)

Install via Composer:

```
composer require sabioweb/php-cwebp-package
```

Requirements
------------

[](#requirements)

- PHP 8.3 or higher
- GD extension enabled

Quick Start
-----------

[](#quick-start)

```
