Actualizacion escalado de imagen y crop

parent f3ae28d9
......@@ -390,13 +390,13 @@ class DefaultController extends Controller {
$log->debug("Cortando horizontalmente en coordenada : $coordenada,0");
$argumentCrop = "-y -i $filename -vf crop=$parameterWidth:$parameterHeight:$coordenada:0 $filename";
$log->debug("Comando a ejecutar : ffmpeg $argumentCrop ");
exec("ffmpeg $argument ", $arrayOuputCrop, $stringSalidaCrop);
exec("ffmpeg $argumentCrop ", $arrayOuputCrop, $stringSalidaCrop);
$log->debug("Codigo Salida : $stringSalidaCrop");
}else if($esHorizontal == 0 && $esVertical == 1){
$log->debug("Cortando verticalmente en coordenada :0,$coordenada");
$argumentCrop = "-y -i $filename -vf crop=$parameterWidth:$parameterHeight:0:$coordenada $filename";
$log->debug("Comando a ejecutar : ffmpeg $argumentCrop ");
exec("ffmpeg $argument ", $arrayOuputCrop, $stringSalidaCrop);
exec("ffmpeg $argumentCrop ", $arrayOuputCrop, $stringSalidaCrop);
$log->debug("Codigo Salida : $stringSalidaCrop");
}
......@@ -420,8 +420,8 @@ class DefaultController extends Controller {
// Create new image with desired dimensions
$image = imagecreatetruecolor($width_x + $width_y, $height_x);
//$image = imagecreatetruecolor($width_x + $width_y, $height_x);
// Load images and then copy to destination image
if ($fileType_x == "png" || $fileType_x == "PNG") {
$image_x = imagecreatefrompng($filename_x);
......
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