ImageCropper
Based on Croppie JS
Last updated
Was this helpful?
Based on Croppie JS
Last updated
Was this helpful?
@stack('styles')
in the head of your app layout,
@stack('scripts')
after Livewire and AlpineJS script tags.
Based on Croppie JS,
This field loads an existing image if it is a valid image url. It is up to you to load the field correctly and save the field value as a valid url.
The hook is emitted when an existing image is deleted.
The ImageCropper generates a base64 png
Pushes (once) external (cdn-links) for required scripts and styles to your layout
Not included by default
Image preview size (class) in relation to its container.
Default = w-full h-full
.
Cropper width in pixels
Cropper height in pixels
Circular cropper shape
Square cropper shape
You must save the uploaded image your self. Read more about how to
Omit this method if you import the scripts yourself,