PHP code example of androzd / imagine

1. Go to this page and download the library: Download androzd/imagine library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

androzd / imagine example snippets


Intervention\Image\ImageServiceProvider::class,
Androzd\Imagine\ImagineServiceProvider::class,

'Image'   => Intervention\Image\Facades\Image::class,
'Imagine' => Androzd\Imagine\ImagineFacade::class,


// compress image by rules
Imagine::path('rule_name', 'path to image in public directory');

Imagine::path('profile_image', '/uploads/original/avatar/1.jpg');
shell
php artisan vendor:publish --provider="Androzd\Imagine\ImagineServiceProvider"