Download the PHP package scalexy/filament-spatie-media-library-croppie without Composer
On this page you can find all versions of the php package scalexy/filament-spatie-media-library-croppie. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download scalexy/filament-spatie-media-library-croppie
More information about scalexy/filament-spatie-media-library-croppie
Files in scalexy/filament-spatie-media-library-croppie
Package filament-spatie-media-library-croppie
Short Description A filament form field for image upload using spatie media library and croppie.js
License MIT
Informations about the package filament-spatie-media-library-croppie
Filament Spatie Media Library Croppie Plugin
Installation
You can install the package via composer (no need to install croppie as well as its assets are bundled):
To use outside filament (e.g. with just the forms package), add the js and css to your vite (or mix) config:
This field extends and therefore has all the functionality of the Filament Spatie Media Library Plugin field.
Use boundaryWidth
and boundaryHeight
to set width and height of the image area in the modal. The values above are the defaults.
Use viewportWidth
and viewportHeight
to set width and height of the cropper itself. Values above are the defaults.
showZoomer
can be called to show the zoom bar below the image in the modal.
We can make croppie circular using avater
method.
Modal size can be customized using modalSize
method.
For setting the heading use modalHeading
.
Set image quality and format
If your cropped images are very large (see: [https://github.com/Foliotek/Croppie/issues/444]), you can use the imageFormat()
and imageQuality()
methods to modify the resulting image.
Defaults are:
imageQuality(0.9)
imageFormat('png')
License
The MIT License (MIT). Please see License File for more information.
Acknowldgements
This is a fork of josefbehr/FilamentCroppie, which in turn is a fork of of nuhel/FilamentCroppie that extended and adapted to use spatie/media-library and install croppie via npm.
Changelog
v0.0.1
- fork
josefbehr/filament-croppie
and rename everything
All versions of filament-spatie-media-library-croppie with dependencies
filament/spatie-laravel-media-library-plugin Version ^2.0
spatie/laravel-medialibrary Version ^10