Download the PHP package deanblackborough/random-grab-bag without Composer
On this page you can find all versions of the php package deanblackborough/random-grab-bag. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deanblackborough/random-grab-bag
More information about deanblackborough/random-grab-bag
Files in deanblackborough/random-grab-bag
Package random-grab-bag
Short Description A random grab bag of utility classes that have no fixed abode yet.
License MIT
Homepage http://www.transmute-coffee.com
Informations about the package random-grab-bag
Random grab bag
Catch all library for utility classes.
Description
A random grab bag of utility classes that have no fixed abode yet.
Installation
The easiest way to use any of these classes is via composer. , alternatively include the classes in src/ in your library.
The classes
Image Resize
You can use the resize class via the API or directly if you want or need a little more control over the output and options.
API
Direct
Public methods
I've listed the methods, their params and the return type. If it isn't obvious what a method does I have done a bad job of naming it, if so, please let me know.
- createCopy() :
AbstractResize
- getInfo() :
array
- loadImage(
string
$file,string
$path = '') :AbstractResize
- resizeSource() :
AbstractResize
- save() :
AbstractResize
- setCanvasColor(
array
$canvas_color) :AbstractResize
- setFileName(
string
$filename) :AbstractResize
- setHeight(
int
$height) :AbstractResize
- setOptions(
int
$width,int
$height,int
$quality,bool
$maintain_aspect = true,array
$canvas_color = array('r' => 255, 'g' => 255, 'b' => 255)) :AbstractResize
- setPath($path) :
AbstractResize
- setWidth(int $width) :
AbstractResize