Prueba de logs

parent 33530604
......@@ -184,7 +184,7 @@ class DefaultController extends Controller {
// Create new image with desired dimensions
$image = imagecreatetruecolor(1200, 600);
$image = imagecreatetruecolor($width_x + $width_y, $height_x);
// Load images and then copy to destination image
if($fileType_x == "png"){
......@@ -200,8 +200,8 @@ class DefaultController extends Controller {
$image_y = imagecreatefromjpeg($filename_y);
}
imagecopy($image, $image_x, 0, 0, 0, 0, $width_x, $height_x);
imagecopy($image, $image_y, $width_x, 0, 0, 0, $width_y, $height_y);
imagecopyresized($image, $image_x, 0, 0, 0, 0, $width_x, $height_x);
imagecopyresized($image, $image_y, $width_x, 0, 0, 0, $width_y, $height_y);
// Save the resulting image to disk (as JPEG)
......
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