Actualizacion escalado de imagen y crop

parent 9ec5a564
......@@ -325,7 +325,7 @@ class DefaultController extends Controller {
protected function scaleAndCrop($filename){
$log = Utiles::setLog('NutraPharmBundle\Controller\DefaultController:scaleAndCrop', 'nutrapharm/index');
$uploadDir = $this->getParameter('upload_dir');
$rutaFotos = $this->getParameter('ruta_base_servidor_fotos');
$arrayDimension = $this->dimensionImage($filename);
$arrayOuput = array();
$arrayOuputCrop = array();
......@@ -338,6 +338,9 @@ class DefaultController extends Controller {
$parameterWidth = Utiles::getParametroConfiguracion("scale_width");
$parameterHeight = Utiles::getParametroConfiguracion("scale_height");
$coordenada = NULL;
$filename = $rutaFotos.str_replace('../',"", $filename);
$log->debug("Archivo Entrante : $filename");
$log->debug("Ancho Imagen ".$arrayDimension["width"]." | Largo Imagen ".$arrayDimension["height"]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment