PHP code example of scalexy / filament-spatie-media-library-croppie

1. Go to this page and download the library: Download scalexy/filament-spatie-media-library-croppie 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/ */

    

scalexy / filament-spatie-media-library-croppie example snippets


SpatieMediaLibraryCroppie::make('image')
    ->boundaryWidth('100%')
    ->boundaryHeight('600'),

SpatieMediaLibraryCroppie::make('image')
    ->viewportWidth('400')
    ->viewportHeight('400'),

SpatieMediaLibraryCroppie::make('image')
    ->showZoomer(),

SpatieMediaLibraryCroppie::make('avatar')
    ->avatar(),

Croppie::make('background')
    ->modalSize('6xl')
    ->modalHeading("Crop Background Image")

SpatieMediaLibraryCroppie::make('image')
    ->imageFormat('jpeg')
    ->imageQuality(0.7);