Skip to main content

Posts

Showing posts with the label laravel image intervention

Image Compress demo in laravel 5.8 | Intervention Image - Resize image | JayviTech

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...