Prueba de logs

parent e430ee60
...@@ -187,16 +187,16 @@ class DefaultController extends Controller { ...@@ -187,16 +187,16 @@ class DefaultController extends Controller {
$image = imagecreatetruecolor($width_x + $width_y, $height_x); $image = imagecreatetruecolor($width_x + $width_y, $height_x);
// Load images and then copy to destination image // Load images and then copy to destination image
if($fileType_x == "png"){ if($fileType_x == "png" || $fileType_x == "PNG" ){
$image_x = imagecreatefrompng($filename_x); $image_x = imagecreatefrompng($filename_x);
}elseif($fileType_x == "jpeg"){ }elseif($fileType_x == "jpeg" || $fileType_x == "JPEG" ){
$image_x = imagecreatefromjpeg($filename_x); $image_x = imagecreatefromjpeg($filename_x);
} }
// Load images and then copy to destination image // Load images and then copy to destination image
if($fileType_y == "png"){ if($fileType_y == "png" || $fileType_y == "PNG"){
$image_y = imagecreatefrompng($filename_y); $image_y = imagecreatefrompng($filename_y);
}elseif($fileType_y == "jpeg"){ }elseif($fileType_y == "jpeg" || $fileType_y == "JPEG" ){
$image_y = imagecreatefromjpeg($filename_y); $image_y = imagecreatefromjpeg($filename_y);
} }
......
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