Download the PHP package ultrasimplified/nova5-image-cropper without Composer
On this page you can find all versions of the php package ultrasimplified/nova5-image-cropper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ultrasimplified/nova5-image-cropper
More information about ultrasimplified/nova5-image-cropper
Files in ultrasimplified/nova5-image-cropper
Package nova5-image-cropper
Short Description An advanced image field for Nova with crop and resize.
License MIT
Informations about the package nova5-image-cropper
Nova5 Image Cropper Field (formerly Nova advanced image field)
This package provides an advanced image field for Nova 5 resources allowing you to upload, crop and resize any image. It uses Cropper.js with vue-cropperjs in the frontend and Intervention Image in the backend.
This version has been updated to use the current v3 build of Intervention/Image and has increased compatibility with Laravel Nova version 5.
It has been renamed to Nova5 Image Cropper to make it easier for Nova 5 users to find a tool to meet their image cropping needs.
Requirements
This package requires one of the following libraries:
- GD Library >=2.0 (used by default)
- Imagick PHP extension >=6.5.7
See Intervention requirements for more details.
Installation
Install the package into a Laravel application with Nova using Composer:
If you want to use Imagick as the default image processing library, follow the Intervention documentation for Laravel.
TL;DR: run the following command in the root folder of your site.
This will provide you with a new configuration file (config/image.php) where you can specify your preferred driver.
Usage
ImageCropper
extends from File
so you can use any methods that File
implements. See the documentation here.
The resize
option uses Intervention Image resize()
with the upsize and aspect ratio constraints.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.