Actualizacion escalado de imagen y crop

parent 253b2ea6
......@@ -356,14 +356,14 @@ class DefaultController extends Controller {
$log->debug("Foto Vertical Largo > Ancho");
$argument = "-y -i $filename -vf scale=$parameterWidth:-1 $filename";
$log->debug("Comando a ejecutar : ffmpeg $argument ");
exec("/opt/ffmpeg-listas/ffmpeg-3.3.4-64bit-static/ffmpeg $argument ", $arrayOuput, $stringSalida);
exec("ffmpeg $argument ", $arrayOuput, $stringSalida);
$log->debug("Codigo Salida : $stringSalida");
$esVertical = 1;
}else if($arrayDimension["width"] == $arrayDimension["height"]){
$log->debug("Foto Perfecta Ancho = Largo");
$argument = "-y -i $filename -vf scale=-1:$parameterHeight $filename";
$log->debug("Comando a ejecutar : ffmpeg $argument ");
exec("/opt/ffmpeg-listas/ffmpeg-3.3.4-64bit-static/ffmpeg $argument ", $arrayOuput, $stringSalida);
exec("ffmpeg $argument ", $arrayOuput, $stringSalida);
$log->debug("Codigo Salida : $stringSalida");
$esHorizontal = 1;
}
......
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