<?php //load dependencies enic::externals_load('upload'); //alias for DIRECTORY_SEPARATOR define('DS', DIRECTORY_SEPARATOR); /* * @TDODO : setType = jpg, gif, etc. */ class enicImage { /** * @param string indicate the images saved base path (default value: www/static/images) */ protected $imageRootPath; /** * @param string indicate the images base URI (default value: static/images) */ protected $imageRootURI; /** * @param int image's default height in pixel (default value: 250) */ private $height = 250; /** * @param int image's default width in pixel (default value: 250) */ private $width = 250; /** * @param bool activate crop resize strategy (default value: false) */ private $crop = false;