Download the PHP package betalabs/image without Composer
On this page you can find all versions of the php package betalabs/image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package image
Laravel Image
Laravel Image is an image manipulation package for Laravel 4 and 5 based on the PHP Imagine library. It is inspired by Croppa as it can use specially formatted urls to do the manipulations. It supports basic image manipulations such as resize, crop, rotation and flip. It also supports effects such as negative, grayscale, gamma, colorize and blur. You can also define custom filters for greater flexibility.
The main difference between this package and other image manipulation libraries is that you can use parameters directly in the url to manipulate the image. A manipulated version of the image is then saved in the same path as the original image, creating a static version of the file and bypassing PHP for all future requests.
For example, if you have an image at this URL:
/uploads/photo.jpg
To create a 300x300 version of this image in black and white, you use the URL:
/uploads/photo-image(300x300-crop-grayscale).jpg
To help you generate the URL to an image, you can use the Image::url()
method
or
Alternatively, you can programmatically manipulate images using the Image::make()
method. It supports all the same options as the Image::url()
method.
or use directly the Imagine library
Features
This package use Imagine for image manipulation. Imagine is compatible with GD2, Imagick, Gmagick and supports a lot of features.
This package also provides some common filters ready to use (more on this):
- Resize
- Crop (with position)
- Rotation
- Black and white
- Invert
- Gamma
- Blur
- Colorization
- Interlace
Version Compatibility
Laravel | Image |
---|---|
4.2.x | 0.1.x |
5.0.x | 0.2.x |
5.1.x | 0.3.x |
5.2.x | 0.3.x |
Installation
Dependencies:
Server Requirements:
Installation:
1- Require the package via Composer in your composer.json
.
2- Run Composer to install or update the new requirement.
or
3- Add the service provider to your app/config/app.php
file
4- Add the facade to your app/config/app.php
file
5- Publish the configuration file and public files
6- Review the configuration file
Documentation
Roadmap
Here are some features we would like to add in the future. Feel free to collaborate and improve this library.
- More built-in filters such as Brightness and Contrast
- More configuration when serving images
- Artisan command to manipulate images
- Support for batch operations on multiple files
All versions of image with dependencies
illuminate/support Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0
guzzlehttp/guzzle Version 5.3|~6.0|^7.0.1
imagine/imagine Version 0.6.*