added more customer intel. Response message from customer order and email
This commit is contained in:
+14
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user