In this post we will learn "How to compress image before upload in laravel 5.8" . We use intervention in laravel for compress a image. using a Laravel intervention we can easily compress a any type of image format. Intervention image package allows a image to compress and resize in laravel project. So, let's start: Step 1: Install Laravel 5.8 Project Type the following command. composer create-project --prefer-dist laravel/laravel blog "5.8.*" Step 2: Install Intervention Image We will install intervention/image package for resize image. Using this package we can make thumbnail image. Type the following command: composer require intervention/image Then open config/app.php file and add service provider and aliase name. 'providers' => [ .... Intervention\Image\ImageServiceProvider::class, ], 'aliases' => [ .... 'Image' => Intervention\Image\Facades\Image::class, ], Then after publi...
Read PHP Artisan With Jay Chauhan and Learn PHP with Many other technology Languages. A simple blog with an easy and simple solution for Laravel. I will explore the best solution for a particular problem and try to explain new technology things and ideas.