2017 © Pedro Peláez
 

library imagex

Imagex is an Image handling handy library

image

nahidz/imagex

Imagex is an Image handling handy library

  • Wednesday, February 26, 2014
  • by nahid
  • Repository
  • 3 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

imagex

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., (*1)

Installation

add this in your main composer.json file require section require: "nahidz/imagex": "dev-master", (*2)

and update your composer by using "composer update" command in your terminal, (*3)

Configure

Add these in your laravel app/config/app.php "providers" array, (*4)

'Nahidz\Imagex\ImagexServiceProvider',, (*5)

Usage

Syntax: Imagex::load($photoName, $optionsArray)->action($parameter)->save();, (*6)

List of Action:, (*7)

resizeToHeight($height), (*8)

resizeToWidth($width), (*9)

scale($scale), (*10)

resize($width, $height), (*11)

Options: $optionsArray must be an array. Its has four items, (*12)

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' ), (*13)

Example

Imagex::load('file', array('path'=>'public/images/', 'name'=> 'my_photo.jpg'))->resizeToWidth(480)->save();, (*14)

thats it., (*15)

Thank you :), (*16)

The Versions

26/02 2014

dev-master

9999999-dev http://github.com/nahidz/imagex

Imagex is an Image handling handy library

  Sources   Download

MIT

The Requires

 

image resize resizer compress nahid