This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param $file Path to source file | |
* @param $dest Path to save the image | |
* @param $type Method of resizing ('resize', 'resizemin', 'resizecrop', 'crop') | |
* @param $size Dimensions, array of width and height or maxScale | |
* @param $output Type of file to save it as ('jpg', 'png', 'gif') | |
* @param $quality 0 < x < 100 | |
*/ | |
function image ($file, $dest, $type, $size, $output = NULL, $quality = NULL, &$error = '') { | |