PHPackages                             vodea/buglinjo-laravel-webp - 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. vodea/buglinjo-laravel-webp

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

vodea/buglinjo-laravel-webp
===========================

Laravel 5 package for WebP image format

v2.0.5(5y ago)023MITPHPPHP ~7.1

Since Aug 31Pushed 5y agoCompare

[ Source](https://github.com/vodea/laravel-webp)[ Packagist](https://packagist.org/packages/vodea/buglinjo-laravel-webp)[ Docs](https://github.com/buglinjo/laravel-webp)[ RSS](/packages/vodea-buglinjo-laravel-webp/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (16)Used By (0)

WebP (.webp) comes to Laravel
-----------------------------

[](#webp-webp-comes-to-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/058873131a7f7d6e8398fec31040d56f9d68512c052c18183a0c162c37a5ce3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6275676c696e6a6f2f6c61726176656c2d776562702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/buglinjo/laravel-webp)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/2e3c25456f9a72ab801b713bfcda3507ed59a4759d55908ae1ad01cd1d335934/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6275676c696e6a6f2f6c61726176656c2d776562702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/buglinjo/laravel-webp)

About
-----

[](#about)

WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster.

WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller than comparable JPEG images at equivalent SSIM quality index.

Lossless WebP supports transparency (also known as alpha channel) at a cost of just 22% additional bytes. For cases when lossy RGB compression is acceptable, lossy WebP also supports transparency, typically providing 3× smaller file sizes compared to PNG.

`cwebp` compresses an image using the WebP format. Input format can be either `PNG`, `JPEG`, `TIFF`, `WebP` or raw `Y'CbCr` samples.

Before Installation
-------------------

[](#before-installation)

Note: You will need to install WebP before installing this package. For more information you can visit this [page](https://developers.google.com/speed/webp/)

Install
-------

[](#install)

Via Composer

```
$ composer require buglinjo/laravel-webp
```

#### For Laravel &lt;= 5.4

[](#for-laravel--54)

After updating composer, add the ServiceProvider to the providers array in config/app.php

```
Buglinjo\LaravelWebp\WebpServiceProvider::class,
```

You can use the facade for shorter code. Add this to your aliases:

```
'Webp' => Buglinjo\LaravelWebp\Facades\Webp::class,
```

#### Publish config file

[](#publish-config-file)

You will need to publish config file to add `cwebp` global path.

```
php artisan vendor:publish --provider="Buglinjo\LaravelWebp\WebpServiceProvider" --tag=config

```

In `config/laravel-webp.php` config file you should set `cwebp` global path.

```
    return [
        /*
        |--------------------------------------------------------------------------
        | Default Quality
        |--------------------------------------------------------------------------
        |
        | This is a default quality unless you provide while generation of the WebP
        |
        */

        'default_quality' => 70,

        /*
        |--------------------------------------------------------------------------
        | Default Driver
        |--------------------------------------------------------------------------
        |
        | This is a default image processing driver. Available: ['cwebp']
        |
        */

        'default_driver' => 'cwebp',

        /*
        |--------------------------------------------------------------------------
        | Drivers
        |--------------------------------------------------------------------------
        |
        | Available drivers which can be selected
        |
        */

        'drivers' => [

            'cwebp' => [
                'path' => '/usr/local/bin/cwebp',
            ],

        ],
    ];
```

Usage
-----

[](#usage)

```
Webp::make()->save(, );
```

Note: `UploadedFile` class instance is created when file is retrieved using laravel request.

Example:

```
    $webp = Webp::make($request->file('image'));

    if ($webp->save(public_path('output.webp'))) {
        // File is saved successfully
    }
```

where `` is 0 - 100 integer. 0 - lowest quality, 100 - highest quality.

Default `quality` is 70

Also you can set `quality` by chaining `->quality()` between `WebP::make()` and `->save();`

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 89.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~89 days

Recently: every ~101 days

Total

14

Last Release

2017d ago

Major Versions

v1.0.8 → 2.0.x-dev2019-07-03

PHP version history (2 changes)v1.0.2PHP ~5.6|~7.0

2.0.x-devPHP ~7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c6bdb7198f022dea5ee77cae1aa51f8ac84cd1e2469e877a7dca2437c2d00ba?d=identicon)[buffalloo](/maintainers/buffalloo)

---

Top Contributors

[![buglinjo](https://avatars.githubusercontent.com/u/1254208?v=4)](https://github.com/buglinjo "buglinjo (17 commits)")[![jelhan](https://avatars.githubusercontent.com/u/4965703?v=4)](https://github.com/jelhan "jelhan (1 commits)")[![mahammad](https://avatars.githubusercontent.com/u/5662768?v=4)](https://github.com/mahammad "mahammad (1 commits)")

---

Tags

laravelWebpBuglinjoLaravelWebp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/vodea-buglinjo-laravel-webp/health.svg)

```
[![Health](https://phpackages.com/badges/vodea-buglinjo-laravel-webp/health.svg)](https://phpackages.com/packages/vodea-buglinjo-laravel-webp)
```

###  Alternatives

[creativeorange/gravatar

A Laravel Gravatar package for retrieving gravatar image URLs or checking the existance of an image.

5467.5M54](/packages/creativeorange-gravatar)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[buglinjo/laravel-webp

Laravel package for WebP image formatting.

179236.1k2](/packages/buglinjo-laravel-webp)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)[spatie/laravel-og-image

Generate OG images for your Laravel app

305.2k](/packages/spatie-laravel-og-image)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
