PHP code example of weiwait / nova-image

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

    

weiwait / nova-image example snippets


\Weiwait\NovaImage\Image::make('图片', 'image')
    ->cropper([
        'autoCrop' => true,
        'fixed' => true,
        'fixedNumber' => [16, 9],
        'enlarge' => 3,
    ])->storeOriginalName('original');