Download the PHP package ctessier/nova-advanced-image-field without Composer

On this page you can find all versions of the php package ctessier/nova-advanced-image-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nova-advanced-image-field

Nova Advanced Image Field

StyleCI Latest Version on Packagist Total Downloads License

An advanced image field for Nova allowing you to upload, crop and resize images

This package is built on top of the native Nova image field. It uses Advanced Cropper to show a cropper on the frontend, and Intervention Image to process the image on the backend.

Requirements

Version PHP Nova GD (default) Imagick
1.x >=7.1 2 or 3 >=2.0 >=6.5.7
2.x >=7.3 4

See Intervention requirements for more details.

Getting started

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. This will provide you with a new configuration file where you can specify the driver you want.

Code examples

AdvancedImage extends from Image so you can use any methods that Image implements. See the documentation here.

To display the image as a rounded avatar, use the AdvancedAvatar class or the rounded method:

API

driver(string $driver)

Override the default driver to be used by Intervention for the image manipulation.

croppable([float $ratio])

Specify if the underlying image should be croppable.

If a numeric value is given as a first parameter, it will be used to define a fixed aspect ratio for the crop box.

resize(int $width = null[, int $height = null])

Specify the size (width and height) the image should be resized to.

Note: this method uses Intervention Image resize() with the upsize and aspect ratio constraints.

autoOrientate()

Specify if the underlying image should be orientated. It will rotate the image to the orientation specified in Exif data, if any.

This can be mandatory in some cases for the cropper to work properly.

Note: PHP must be compiled in with --enable-exif to use this method. Windows users must also have the mbstring extension enabled. See the Intervention Image documentation for more details.

quality(int $quality)

Specify the resulting quality of the transformed image.

This only applies to JPG format as PNG compression is lossless. The value must range from 0 (poor quality, small file) to 100 (best quality, big file).

Note: the quality will be passed to the Intervention Image save() method.

convert(string $format)

Specify the desired output format.

Note: See Intervention Image encode() for more details, including the list of allowed formats.


All versions of nova-advanced-image-field with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
intervention/image Version ^2.7
laravel/nova Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ctessier/nova-advanced-image-field contains the following files

Loading the files please wait ....