Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 116 | All time: 9,555 This week: 455 |
Version | License | PHP version | Categories | |||
imagex 1.0.0 | MIT/X Consortium ... | 5 | PHP 5, Graphics, Files and Folders |
Description | Author | |
This class can validate and resize uploaded image files. |
Imagex is an Image handling library for Laravel 4. You can resize an image by scale, width, height and both of width and height. You can also compress image. Its too handy and easy to use.
add this in your main composer.json file require section require: "nahidz/imagex": "dev-master"
and update your composer by using "composer update" command in your terminal
Add these in your laravel app/config/app.php "providers" array
'Nahidz\Imagex\ImagexServiceProvider',
Syntax: Imagex::load($photoName, $optionsArray)->action($parameter)->save();
List of Action:
resizeToHeight($height)
resizeToWidth($width)
scale($scale)
resize($width, $height)
Options: $optionsArray must be an array. Its has four items
array( 'path'=>'where you want to save your image', 'name'=>'Which name you want to set is your image', 'compress'=>'compression value 0-100, its optional', 'permission'=>'permission code, its also optional' )
Imagex::load('file', array('path'=>'public/images/', 'name'=> 'my_photo.jpg'))->resizeToWidth(480)->save();
thats it.
Thank you :)
Files (7) |
File | Role | Description | ||
---|---|---|---|---|
src (1 directory) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (7) | / | src | / | Nahidz | / | Imagex |
File | Role | Description | ||
---|---|---|---|---|
Facades (1 file) | ||||
Imagex.php | Class | Class source | ||
ImagexServiceProvider.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.