PHP code example of mindinventory / glide-image-utility

1. Go to this page and download the library: Download mindinventory/glide-image-utility 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/ */

    

mindinventory / glide-image-utility example snippets


MiImage::createImage($ImagePath,['w'=> 50, 'h'=>100, 'fit'=>'crop', 'bg' => 'CCC']);

'providers' => [
    ...
    Mi\MiImageUtility\ImageServiceProvider::class,
    ...
];




return [
    /* This is cache folder that create inside storage/images/cache folder */
    'cache_folder' => env('Cache_Folder', storage_path('images/cache')),
];


MiImage::createImage($pathToImage,['w'=> 50, 'h'=>50, 'fit'=>'crop', 'bg' => 'CCC']);
bash
php artisan vendor:publish --provider="Mi\MiImageUtility\ImageServiceProvider" --tag=config