Add "fit" method, which resizes the image so it fits entirely within the new dimensions, and then pads as required so the resulting image is exactly what was requested.
Signed-off-by: Colin Viebrock <colin@viebrock.ca>
Merged a pull request from Colin Viebrock and updated code style
Change padding for 'fit' mode from black to white. Thanks to Colin Vierbrock.
Transparent PNG to JPG will convert transparent pixels to white, instead of black
Modified code as per Mark Wu's tests. Saves a white bg instead of black for transparent pixels
Removed previous code to set bg to white for transparent pixels due to noise in bg and jagged edges
Added config file to allow user to set some defaults
Updated version to 1.1
Fixed a conflict in resizer
Refining mime check

It is better to check the image not by its seen extension, but by its origin header of creation. 
So when image are renamed from png to jpg, it wont threat that image as png
because the library like GD would get error.  
Merge pull request #17 from arifLogic/master

Refining mime check, not from ext
Coding style
Add a file check to ensure that the file exists before trying to process it
Merge branch 'release/v1.2'
Added smarter config loading. If resizer.php is avaiable in the config directory, it will be loaded. Otherwise the defaults will be loaded from the bundle
Updated readme
bumped up the version
Merge branch 'feature/smarter-config' into develop
Merge branch 'release/v1.21'