added more customer intel. Response message from customer order and email

This commit is contained in:
2026-10-20 10:15:30 +03:00
parent c41e56d382
commit 9634551a68
49 changed files with 50 additions and 17 deletions
+14 -5
View File
@@ -78,14 +78,23 @@ if(is_dir("uploads/".$customername)){
//resize picture on upload dont see any reason to keep original picturefiles on server at this moment
$source = imagecreatefromjpeg($urls);
list($width, $height) = getimagesize($urls);
list($old_width, $old_height) = getimagesize($urls);
// Define new dimensions
/*$newWidth = 400;
$newHeight = 400;
*/
$newWidth = $width / 20;
$newHeight = $height / 20;
$max_width = 400;
if ($old_width > $max_width) {
$ratio = $old_width / $max_width;
$newWidth = $max_width;
$newHeight = (int) round($old_height / $ratio);
} else {
$newWidth = $old_width;
$newHeight = $old_height;
}
// Create a blank true-color image
$thumb = imagecreatetruecolor($newWidth, $newHeight);
@@ -98,11 +107,11 @@ imagejpeg($thumb, $urls, 80);
// Free up memory
imagedestroy($source);
imagedestroy($thumb);
//image is resized next step watermark
//image is resized next step watermark
// Ladataan pääkuva ja vesileimalogo
$mainImg = imagecreatefromjpeg($urls);
$watermark = imagecreatefrompng('raccoon.png');
$watermark = imagecreatefrompng('styles/tes.png');
// Haetaan kuvien mitat
$mainWidth = imagesx($mainImg);