Download the PHP package phuongnamsoft/laravel-admin-cropper without Composer
On this page you can find all versions of the php package phuongnamsoft/laravel-admin-cropper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phuongnamsoft/laravel-admin-cropper
More information about phuongnamsoft/laravel-admin-cropper
Files in phuongnamsoft/laravel-admin-cropper
Package laravel-admin-cropper
Short Description Integrate Cropper into laravel-admin
License MIT
Homepage https://github.com/phuongnamsoft/laravel-admin-cropper
Informations about the package laravel-admin-cropper
cropper extension for laravel-admin
This is a laravel-admin
extension to integratecropper
into the form of laravel-admin
Installation
Then...
Configuration
In the extensions
of theconfig/admin.php
file, add some configuration belonging to this extension:
Usage:
Use it in form:
The default mode is free crop mode, if you need to force crop size, please use (note that this size is the final picture size not "scale")
PS (feature read ahead)
-
The picture is not pre-uploaded, but the input is input after the front end is converted to base64, and the server returns the image to save it.
-
The picture format is saved by default. That is, if the original image is a png image with a transparent background, it will still be a png image with a transparent background after saving, and it will not be lost (front-end logo artifact)
-
The extension can be called multiple times. Can be transferred multiple times in the same form without interfering with each other.
- Extend the ImageField and File classes of laravel-admin. So you don't have to worry about modifying and deleting pictures. They are all automatic. Of course, since the ImageField class is inherited, you can also use the various (crop, fit, insert) methods of "intervention/image" (Provided that you have )
License
Licensed under The MIT License (MIT).