hisuley/image
Larablocks Analysis
hisuley/image works with Laravel 5 (latest release v0.3.16, Oct 4, 2016), which reached end of life: no more fixes, even for security.
Laravel 4 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Oct 4, 2016)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Oct 4, 2016.
- No releases in the last 12 months.
- First released: Feb 4, 2014.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require hisuley/image |
|
| Latest Version: | v0.3.16 |
| PHP: | >=5.4.0 |
| Laravel: | 5 |
| Older releases: | 4 |
| License: | MIT |
| Last Updated: | Feb 1, 2017 |
| Links: | GitHub · Packagist |
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
Image::url('/uploads/photo.jpg',300,300,array('crop','grayscale'));
or
<img src="<?=Image::url('/uploads/photo.jpg',300,300,array('crop','grayscale'))?>" />
Alternatively, you can programmatically manipulate images using the Image::make() method. It supports all the same options as the Image::url() method.
Image::make('/uploads/photo.jpg',array(
'width' => 300,
'height' => 300,
'grayscale' => true
))->save('/path/to/the/thumbnail.jpg');
or use directly the Imagine library
$thumbnail = Image::open('/uploads/photo.jpg')
->thumbnail(new Imagine\Image\Box(300,300));
$thumbnail->effects()->grayscale();
$thumbnail->save('/path/to/the/thumbnail.jpg');
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.
{
"require": {
"folklore/image": "0.3.*"
}
}
2- Run Composer to install or update the new requirement.
$ composer install
or
$ composer update
3- Add the service provider to your app/config/app.php file
'Folklore\Image\ImageServiceProvider',
4- Add the facade to your app/config/app.php file
'Image' => 'Folklore\Image\Facades\Image',
5- Publish the configuration file and public files
$ php artisan vendor:publish --provider="Folklore\Image\ImageServiceProvider"
6- Review the configuration file
app/config/image.php
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
Related Packages
Библиотека преображения изображений Imgso для Laravel 5, основанная на библиотек...
Image handling and manipulation library with support for Laravel integration
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.3.16 | >=5.4.0 | ~5.1 | MIT | |
| v0.3.15 | >=5.4.0 | ~5.1 | MIT | |
| v0.3.14 | >=5.4.0 | ~5.1 | MIT | |
| v0.3.13 | >=5.4.0 | ~5.1 | MIT | |
| v0.3.12 | >=5.4.0 | ~5.1 | MIT | |
| v0.3.11 | >=5.4.0 | ~5.1 | MIT | |
| v0.3.10 | >=5.4.0 | >=5.1 | MIT | |
| v0.3.9 | >=5.4.0 | ~5.2 | MIT | |
| v0.3.8 | >=5.4.0 | ~5.2 | MIT | |
| v0.3.7 | >=5.4.0 | ~5.2 | MIT | |
| v0.3.6 | >=5.4.0 | ~5.2 | MIT | |
| v0.3.5 | >=5.4.0 | ~5.2 | MIT | |
| v0.3.4 | >=5.4.0 | ~5.2 | MIT | |
| v0.3.3 | >=5.4.0 | ~5.2 | MIT | |
| v0.3.2 | >=5.4.0 | ~5.2 | MIT | |
| v0.3.1 | >=5.4.0 | ~5.2 | MIT | |
| v0.3.0 | >=5.4.0 | ~5.2 | MIT | |
| v0.2.5 | >=5.4.0 | >=5.0 <5.2 | MIT | |
| v0.2.4 | >=5.4.0 | ~5.0 | MIT | |
| v0.2.3 | >=5.4.0 | ~5.0 | MIT | |
| v0.2.2 | >=5.4.0 | ~5.0 | MIT | |
| v0.2.1 | >=5.4.0 | ~5.0 | MIT | |
| v0.2.0 | >=5.4.0 | ~5.0 | MIT | |
| v0.1.6 | >=5.4.0 | 4.2.* | MIT | |
| v0.1.5 | >=5.4.0 | 4.2.* | MIT | |
| v0.1.4 | >=5.4.0 | 4.2.* | MIT | |
| v0.1.3 | >=5.4.0 | 4.2.* | MIT | |
| v0.1.2 | >=5.4.0 | 4.2.* | MIT | |
| v0.1.1 | >=5.4.0 | 4.2.* | MIT | |
| v0.1.0 | >=5.3.0 | 4.1.* | MIT |
