Prueba de logs

parent a91ff3b6
...@@ -169,7 +169,7 @@ class DefaultController extends Controller { ...@@ -169,7 +169,7 @@ class DefaultController extends Controller {
} }
$this->merge($uploadDir.'/'.$usuario->getUnuPathFotoInicial(), $usuario->getUnuExtInicial(), $uploadDir.'/'.$filename , $usuario->getUnuExtFinal(), $uploadDir . '/' . $idNutrapharm . "_comparacion"); $this->merge($uploadDir.'/'.$usuario->getUnuPathFotoInicial(), $usuario->getUnuExtInicial(), $uploadDir.'/'.$filename , $usuario->getUnuExtFinal(), $uploadDir . '/' . $idNutrapharm . "_comparacion.png");
return new JsonResponse(array("msg" => "Se ha generado la comparación, compartelo en las redes sociales!", "tipo" => UsuarioNutrapharm::ESTADO_FOTO_FINAL, "usuario" => $idNutrapharm), Response::HTTP_OK, ['content-type' => 'application/json']); return new JsonResponse(array("msg" => "Se ha generado la comparación, compartelo en las redes sociales!", "tipo" => UsuarioNutrapharm::ESTADO_FOTO_FINAL, "usuario" => $idNutrapharm), Response::HTTP_OK, ['content-type' => 'application/json']);
} }
...@@ -205,7 +205,7 @@ class DefaultController extends Controller { ...@@ -205,7 +205,7 @@ class DefaultController extends Controller {
// Save the resulting image to disk (as JPEG) // Save the resulting image to disk (as JPEG)
imagejpeg($image, $filename_result); imagepng($image, $filename_result);
// Clean up // Clean up
......
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