PHPackages                             wizzou/laravel-image-optimizer - 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. wizzou/laravel-image-optimizer

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

wizzou/laravel-image-optimizer
==============================

A Laravel package to efficiently resize and optimize images, supporting multiple storage backends including local file systems and cloud storage like Amazon S3.

v1.0.2(1y ago)033BSD-2-ClausePHPPHP ^7.3|^8.0

Since Apr 15Pushed 1y agoCompare

[ Source](https://github.com/wizzou-com/laravel-image-optimizer)[ Packagist](https://packagist.org/packages/wizzou/laravel-image-optimizer)[ RSS](/packages/wizzou-laravel-image-optimizer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Laravel Image Optimizer
=======================

[](#laravel-image-optimizer)

[![Latest Stable Version](https://camo.githubusercontent.com/88e6315ea761fe6eb58a429f405ce764f52545362647635c0305b1c1b82c8566/68747470733a2f2f706f7365722e707567782e6f72672f77697a7a6f752f6c61726176656c2d696d6167652d6f7074696d697a65722f762f737461626c65)](https://packagist.org/packages/wizzou/laravel-image-optimizer)[![Total Downloads](https://camo.githubusercontent.com/3c24fb0a737863d0ebd209b067c7481d8d2136756dd9adbcaaaf3005042c4731/68747470733a2f2f706f7365722e707567782e6f72672f77697a7a6f752f6c61726176656c2d696d6167652d6f7074696d697a65722f646f776e6c6f616473)](https://packagist.org/packages/wizzou/laravel-image-optimizer)[![License](https://camo.githubusercontent.com/ffd5d0810a2e20dca9946515ce1c56cfabd321fb6620f7c6ab1d0b5b27404e49/687474703a2f2f706f7365722e707567782e6f72672f77697a7a6f752f6c61726176656c2d696d6167652d6f7074696d697a65722f6c6963656e7365)](https://packagist.org/packages/wizzou/laravel-image-optimizer)

The `wizzou/laravel-image-optimizer` package provides a convenient solution for dynamically resizing and optimizing images in Laravel applications. It automates the process of image resizing, optimizing file sizes, and storing images in different storage backends such as local filesystems or cloud storage services like Amazon S3.

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

[](#installation)

You can install the package via Composer. Run the following command in your terminal:

```
composer require wizzou/laravel-image-optimizer
```

After installing the package, the ImageOptimizer service will be available for use in your Laravel application.

Configuration
-------------

[](#configuration)

Publish the configuration file using the following Artisan command:

```
php artisan vendor:publish --provider="Wizzou\ImageOptimizer\ImageOptimizerServiceProvider"
```

This will create a `config/image-optimizer.php` file where you can configure the package settings.

### Configuration Options

[](#configuration-options)

The configuration file allows you to customize various aspects of the image optimization process:

- **Default Quality**: The default quality setting (0-100) for image compression.
- **Storage Disk**: The disk where optimized images will be stored (e.g., `public`, `s3`).
- **Storage Path**: The directory path within the chosen disk where images will be stored.
- **Default Format**: The default file format for image conversion (e.g., `webp`, `jpg`, `png`).

Modify these settings according to your application's requirements.

Usage
-----

[](#usage)

You can use the `ImageOptimizer` service to resize and optimize images in your Laravel application. Here's how you can use it in your code:

```
use Wizzou\ImageOptimizer\Facades\ImageOptimizer;

// Resize and optimize an image
$imageUrl = 'example.jpg';
$resizedImageUrl = ImageOptimizer::resize($imageUrl, 800, 600);
```

or

```
{{-- Example Blade Template --}}

```

The `resize` method accepts the URL of the original image, as well as the desired width and height for the resized image. Optionally, you can specify the desired file format for the resized image as the fourth parameter.

Contributing
------------

[](#contributing)

If you have suggestions for how this package could be improved, or if you've found a bug, please open an issue on [GitHub](https://github.com/wizzou-com/laravel-image-optimizer/issues).

Pull requests are also welcome! Please ensure that your code adheres to the [PSR-12](https://www.php-fig.org/psr/psr-12/) coding standard and includes appropriate tests.

License
-------

[](#license)

The `wizzou/laravel-image-optimizer` package is open-source software licensed under the [BSD-2-Clause](LICENSE.md).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~96 days

Total

3

Last Release

568d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01896dfb1f2b8db8feec341ebfc5d506ed457e567c34d8a6c14ab12888ee484b?d=identicon)[wizzou](/maintainers/wizzou)

---

Top Contributors

[![timdesm](https://avatars.githubusercontent.com/u/30378686?v=4)](https://github.com/timdesm "timdesm (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wizzou-laravel-image-optimizer/health.svg)

```
[![Health](https://phpackages.com/badges/wizzou-laravel-image-optimizer/health.svg)](https://phpackages.com/packages/wizzou-laravel-image-optimizer)
```

###  Alternatives

[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)[devfactory/imagecache

Laravel package for generating thumbnails of images and caching them in your public files folder.

1620.3k](/packages/devfactory-imagecache)[spatie/laravel-og-image

Generate OG images for your Laravel app

305.2k](/packages/spatie-laravel-og-image)[freearhey/laravel-face-detection

A Laravel Package for Face Detection and Cropping in Images.

392.2k](/packages/freearhey-laravel-face-detection)[flowframe/laravel-drift

128.7k](/packages/flowframe-laravel-drift)

PHPackages © 2026

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