PHPackages                             paramonovav/laravel-optimize-images - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. paramonovav/laravel-optimize-images

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

paramonovav/laravel-optimize-images
===================================

Optimize images command for Laravel 4

1.0.0(10y ago)163MITPHPPHP &gt;=5.4.0

Since Jul 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/paramonovav/laravel-optimize-images)[ Packagist](https://packagist.org/packages/paramonovav/laravel-optimize-images)[ RSS](/packages/paramonovav-laravel-optimize-images/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Optimize Images
===============

[](#optimize-images)

[![Latest Stable Version](https://camo.githubusercontent.com/87e771c0558bdc83255343c123731b58a6ab2afd37a5c0a9d6488348d1cc7503/68747470733a2f2f706f7365722e707567782e6f72672f706172616d6f6e6f7661762f6c61726176656c2d6f7074696d697a652d696d616765732f762f737461626c65)](https://packagist.org/packages/paramonovav/laravel-optimize-images) [![Total Downloads](https://camo.githubusercontent.com/8f2841b551601f081fe7c0176996a18605ae5b2787441f1a376199098e64f36c/68747470733a2f2f706f7365722e707567782e6f72672f706172616d6f6e6f7661762f6c61726176656c2d6f7074696d697a652d696d616765732f646f776e6c6f616473)](https://packagist.org/packages/paramonovav/laravel-optimize-images) [![Latest Unstable Version](https://camo.githubusercontent.com/6ea353dabdc392268039f52bfb55f702a9842bb30713d145e3a72d91e5d67796/68747470733a2f2f706f7365722e707567782e6f72672f706172616d6f6e6f7661762f6c61726176656c2d6f7074696d697a652d696d616765732f762f756e737461626c65)](https://packagist.org/packages/paramonovav/laravel-optimize-images) [![License](https://camo.githubusercontent.com/f4b0e4b33a5586d2ff5f8e3a2e8127797ebc612036d20157b489e3ef31b80965/68747470733a2f2f706f7365722e707567782e6f72672f706172616d6f6e6f7661762f6c61726176656c2d6f7074696d697a652d696d616765732f6c6963656e7365)](https://packagist.org/packages/paramonovav/laravel-optimize-images)

Artisan command for Laravel 4 to optimize your images using [jpegoptim](http://freecode.com/projects/jpegoptim) and [optipng](http://optipng.sourceforge.net/).

*Note*: Based on and inspired by [Spir/ImageOptimize](https://gist.github.com/Spir/5650030).

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

[](#installation)

Require this package with composer:

```
composer require paramonovav/laravel-optimize-images

```

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

```
'Paramonovav\LaravelOptimizeImages\LaravelOptimizeImagesServiceProvider',

```

You need to publish the config from this package.

```
php artisan config:publish paramonovav/laravel-optimize-images

```

### Installation "jpegoptim" and "optipng" on MacOS X

[](#installation-jpegoptim-and-optipng-on-macos-x)

Installing with [brew](http://brew.sh/)

```
brew install jpegoptim optipng

```

### Installation "jpegoptim" and "optipng" on CentOS with yum

[](#installation-jpegoptim-and-optipng-on-centos-with-yum)

Installing with yum package manager

```
yum install jpegoptim optipng -y

```

Now you can run artisan command:

```
php artisan optimize:images

```

> *Note*: Be CAREFUL optimized images override/replace the original images

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3940d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc3728c3aac76a080a0c92ced2910fb710b97cda3e2d3363942cc769f1c4d4c8?d=identicon)[paramonovav](/maintainers/paramonovav)

---

Top Contributors

[![paramonovav](https://avatars.githubusercontent.com/u/607431?v=4)](https://github.com/paramonovav "paramonovav (8 commits)")

---

Tags

artisan-commandjpegoptimlaravellaravel4optimize-imagesoptipnglaravelartisanimagescommandoptimize

### Embed Badge

![Health badge](/badges/paramonovav-laravel-optimize-images/health.svg)

```
[![Health](https://phpackages.com/badges/paramonovav-laravel-optimize-images/health.svg)](https://phpackages.com/packages/paramonovav-laravel-optimize-images)
```

###  Alternatives

[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k5.4k1](/packages/vinkius-labs-laravel-page-speed)[msztorc/laravel-env

Laravel env helper commands

7855.4k](/packages/msztorc-laravel-env)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)

PHPackages © 2026

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