All Projects → approached → Laravel Image Optimizer

approached / Laravel Image Optimizer

Licence: mit
[deprecated] Image optimizer for laravel

Projects that are alternatives of or similar to Laravel Image Optimizer

Deeployer
Deploy your Laravel applications via Github or Bitbucket Hooks
Stars: ✭ 151 (-3.21%)
Mutual labels:  laravel
Laravel Twitter Streaming Api
Easily work with the Twitter Streaming API in a Laravel app
Stars: ✭ 153 (-1.92%)
Mutual labels:  laravel
Schedule
Schedule is a package that helps tracking schedules for your models. If you have workers in a company, you can set schedules for them and see their availability though the time.
Stars: ✭ 155 (-0.64%)
Mutual labels:  laravel
Material Dashboard
Material Frontend Preset For Laravel Framework 8.x and Up
Stars: ✭ 152 (-2.56%)
Mutual labels:  laravel
Laravel best practices cn
Laravel最佳实践
Stars: ✭ 152 (-2.56%)
Mutual labels:  laravel
Laravel Keycloak Guard
🔑 Simple Keycloak Guard for Laravel / Lumen
Stars: ✭ 154 (-1.28%)
Mutual labels:  laravel
Adminlte Laravel
A Laravel 5 package that switchs default Laravel scaffolding/boilerplate to AdminLTE template and Pratt Landing Page with Bootstrap 3.0
Stars: ✭ 1,814 (+1062.82%)
Mutual labels:  laravel
Laravel Proximage
🌐 Laravel Proximage is a handy package for proxying images.
Stars: ✭ 156 (+0%)
Mutual labels:  laravel
Genealogy
Laravel 8 and Vue family tree and genealogy data processing website.
Stars: ✭ 153 (-1.92%)
Mutual labels:  laravel
Phphub
(Deprecated See - https://github.com/summerblue/phphub5 ) PHPHub is a Forum project written in Laravel 4.2, and it is also the project build up PHP & Laravel China community - http://phphub.org.
Stars: ✭ 1,846 (+1083.33%)
Mutual labels:  laravel
Saas Boilerplate
SaaS boilerplate built in Laravel, Bootstrap 4 and VueJs.
Stars: ✭ 152 (-2.56%)
Mutual labels:  laravel
Laravel Auto Translate
Automatically translate your language files using a translator service
Stars: ✭ 153 (-1.92%)
Mutual labels:  laravel
Identity Card
A simple proof of identity card of the people's Republic of China.
Stars: ✭ 154 (-1.28%)
Mutual labels:  laravel
Laravelresources
Speed Up package development for Laravel Apps with API's
Stars: ✭ 152 (-2.56%)
Mutual labels:  laravel
Laravel Queue
Laravel Enqueue message queue extension. Supports AMQP, Amazon SQS, Kafka, Google PubSub, Redis, STOMP, Gearman, Beanstalk and others
Stars: ✭ 155 (-0.64%)
Mutual labels:  laravel
Laravel.io
The Laravel.io Community Portal.
Stars: ✭ 1,993 (+1177.56%)
Mutual labels:  laravel
Infinity Next
Infinity Next is an imageboard suite utilizing the Laravel framework.
Stars: ✭ 153 (-1.92%)
Mutual labels:  laravel
Spoon
Our simple Laravel boilerplate
Stars: ✭ 156 (+0%)
Mutual labels:  laravel
Opendominion
A text-based, persistent browser-based strategy game (PBBG) in a fantasy war setting
Stars: ✭ 155 (-0.64%)
Mutual labels:  laravel
Laravel Mobile Detect
Mobile detection within Blade templates
Stars: ✭ 154 (-1.28%)
Mutual labels:  laravel

This package is now deprecated. I prefer to use spatie/image-optimizer package. Because this code is better structured.


Laravel Imageoptimizer

License Latest Stable Version Total Downloads Build Status

With this package you can easy optimize your image in laravel 5.x or lumen. Read the google instruction https://developers.google.com/speed/docs/insights/OptimizeImages about image optimize.

Installation

Recommend convert packages:

sudo apt-get install pngquant gifsicle jpegoptim
  • Require this package with composer:
composer require approached/laravel-image-optimizer
  • After updating composer, add the ServiceProvider to the providers array in config/app.php
Approached\LaravelImageOptimizer\ServiceProvider::class,
  • Copy the package config to your local config with the publish command:
php artisan vendor:publish --tag=imageoptimizer

Usage

Automatic (middleware)

If you want to run the ImageOptimizer automatically for all the uploaded images:

Route::post('admin/image/upload', function () {
    $picture = $request->file('picture');

   ...
})->middleware('AutoImageOptimizer');

Manual

On uploading a file:

public function store(Request $request, ImageOptimizer $imageOptimizer)
    {
        $picture = $request->file('picture');

        // optimize
        $imageOptimizer->optimizeUploadedImageFile($picture);

        // save
        Storage::put('/my/cool/path/test.jpg', File::get($picture));

        ...
    }

Extension

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].