Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paramonovav/laravel-optimize-images
Optimize images artisan command for Laravel 4
https://github.com/paramonovav/laravel-optimize-images
artisan-command jpegoptim laravel laravel4 optimize-images optipng
Last synced: 3 months ago
JSON representation
Optimize images artisan command for Laravel 4
- Host: GitHub
- URL: https://github.com/paramonovav/laravel-optimize-images
- Owner: paramonovav
- License: mit
- Archived: true
- Created: 2015-07-28T19:57:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-24T09:19:42.000Z (almost 9 years ago)
- Last Synced: 2024-09-19T14:43:36.396Z (3 months ago)
- Topics: artisan-command, jpegoptim, laravel, laravel4, optimize-images, optipng
- Language: PHP
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Optimize Images
================
[![Latest Stable Version](https://poser.pugx.org/paramonovav/laravel-optimize-images/v/stable)](https://packagist.org/packages/paramonovav/laravel-optimize-images) [![Total Downloads](https://poser.pugx.org/paramonovav/laravel-optimize-images/downloads)](https://packagist.org/packages/paramonovav/laravel-optimize-images) [![Latest Unstable Version](https://poser.pugx.org/paramonovav/laravel-optimize-images/v/unstable)](https://packagist.org/packages/paramonovav/laravel-optimize-images) [![License](https://poser.pugx.org/paramonovav/laravel-optimize-images/license)](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
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
Installing with [brew](http://brew.sh/)
```
brew install jpegoptim optipng
```### 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