PHPackages                             dzorogh/optimizedimage - 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. dzorogh/optimizedimage

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

dzorogh/optimizedimage
======================

Optimize images on fly, generate webp, resize, etc.

1.2.1(4y ago)131MITPHPPHP ^7.0|^8.0

Since Oct 12Pushed 4y agoCompare

[ Source](https://github.com/Dzorogh/optimizedimage)[ Packagist](https://packagist.org/packages/dzorogh/optimizedimage)[ RSS](/packages/dzorogh-optimizedimage/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (3)Versions (23)Used By (0)

Optimized Image
===============

[](#optimized-image)

- Show `` block with srcset and lazy-load params.
- Format to webp and resize image on server.

How to use
----------

[](#how-to-use)

Add to .env `APP_KEY_128` variable with some long key.

Required lazy load js plugin.  works great. Setup it to use .lazy class.

In your blade template:

```
{!! \Dzorogh\OptimizedImage\Picture::generate('/image/path/inside/storage/app/public/folder.jpg', [
    'width' => 1200,
    'height' => 600,
    'type' => 'jpg',
    'img_classes' => 'img-fluid rounded',
    'picture_classes' => 'my-5',
    'name' => "Fake File Name"])
!!}
```

The `picture` method returns HTML. It has `` tag with 2 sources: one for `png`/`jpg` type of image, and second with `webp`. And also default ![]() tag with width and height.

You must store your images in `/storage/app/public` folder. This package also creates `/storage/app/cache` for cached resized variants

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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 ~24 days

Recently: every ~105 days

Total

22

Last Release

1524d ago

Major Versions

0.0.3 → 1.1.02020-10-12

PHP version history (2 changes)0.0.1PHP ^7.0

1.2.1PHP ^7.0|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/57f898cad37ca48dcf87af8ea061a7c05dcd4dc130d332780838388ac274281a?d=identicon)[dzorogh](/maintainers/dzorogh)

---

Top Contributors

[![dzorogh](https://avatars.githubusercontent.com/u/1428839?v=4)](https://github.com/dzorogh "dzorogh (33 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dzorogh-optimizedimage/health.svg)

```
[![Health](https://phpackages.com/badges/dzorogh-optimizedimage/health.svg)](https://phpackages.com/packages/dzorogh-optimizedimage)
```

###  Alternatives

[awcodes/filament-curator

A media picker plugin for FilamentPHP.

434297.7k19](/packages/awcodes-filament-curator)[spatie/laravel-glide

Easily convert images with Glide

451905.6k16](/packages/spatie-laravel-glide)[trntv/yii2-glide

Yii2 Glide Extension

41269.5k9](/packages/trntv-yii2-glide)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)[admad/cakephp-glide

CakePHP plugin for using Glide image manipulation library.

34160.7k1](/packages/admad-cakephp-glide)[justbetter/statamic-image-optimize

Image optimization after upload

1315.2k](/packages/justbetter-statamic-image-optimize)

PHPackages © 2026

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