Change cqcode1234567890 image name
  • Create code 128 for screen capture
  • API tiny website text change
  • Printout form; pricing/customer service and pre-registering rewards cards
    UPC in /cgi/CRcode/z3erased/ QRcode in /cgi/CRcode/bitmapsgif/

    Please upload the UPCmkr image first then use the form above...

    If you redirect back to here after clicking on Submit Image you did good :)

    Your graphic will work as soon as you upload the UPC image w300 x h305...

    //header('Content-type: image/png'); //function imageComposeAlpha( &$src, &$ovr, $ovr_x, $ovr_y, $ovr_w = false, $ovr_h = false, $opc = 127){ imagecopy($src, $ovr, $ovr_x, $ovr_y, 0, 0, imagesx($ovr), imagesy($ovr) ); //} //function imagesavealpha($photoImage, true); ////////////////////////---////////----------------------------------- $url = "/www/cgi/CRcode/bitmapsgif/"; $getsimulator = 'cqcode1679486034.png cqcode1679485240.png'; //Covert the String into an Array //$letter = str_split(strtoupper ($_GET['name'])); $letter = preg_split('/ /', $getsimulator); //Populate Letters Image Path $count = -1; foreach($letter as $a){ //exeptions $count = $count + 1; if($a != " "){ $a = $a; } if($count == 0) { $image = $image . $url.$a . " "; } if($count == 1){ $image = $image . $url.$a; } }unset($a); $imagesplit = preg_split('/ /', $image, 2, PREG_SPLIT_OFFSET_CAPTURE); print_r($imagesplit); //$h = $imagesplit[0]; //$b = $imagesplit[1]; $h = '/www/cgi/CRcode/bitmapsgif/cqcode1679486034.png'; $b = '/www/cgi/CRcode/bitmapsgif/cqcode1679485240.png'; echo "*** $h *** $b ***"; $headResource = imagecreatefrompng($h); $bodyResource = imagecreatefrompng($b); echo "*** $headResource *** $bodyResource ***"; list($headWidth, $headHeight) = getimagesize($h); list($bodyWidth, $bodyHeight) = getimagesize($b); echo "*** $headWidth *** $headHeight *** $bodyWidth *** $bodyHeight ***"; $previewHeight = 410; //$headHeight+$bodyHeight; $previewWidth = 410; //$headWidth+$bodyWidth; echo "*** $previewHeight *** $previewWidth ***"; $previewResource = imagecreate($previewWidth, $previewHeight); //make background white //$white = imagecolorallocate($previewResource, 255, 255, 255); //imagefill($previewResource, 0, 0, $white); // Copy head image imagecopyresized($previewResource,$headResource,0,0,0,0,$previewWidth,$previewHeight,$headWidth,$headHeight); //copy body image imagecopy($previewResource,$bodyResource,0,0,0,0,$previewWidth,$previewHeight); //header('Content-type: image/png'); //imagepng($previewResource); ImagePNG($previewResource) ; //output to browser //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //header('Content-type: image/png'); //function imageComposeAlpha( &$src, &$ovr, $ovr_x, $ovr_y, $ovr_w = false, $ovr_h = false, $opc = 127){ imagecopy($src, $ovr, $ovr_x, $ovr_y, 0, 0, imagesx($ovr), imagesy($ovr) ); //} //function imagesavealpha($photoImage, true); ////////////////////////---////////----------------------------------- $url = "/www/cgi/CRcode/bitmapsgif/"; $getsimulator = 'cqcode1679486034.png cqcode1679485240.png'; //Covert the String into an Array //$letter = str_split(strtoupper ($_GET['name'])); $letter = preg_split('/ /', $getsimulator); //Populate Letters Image Path $count = -1; foreach($letter as $a){ //exeptions $count = $count + 1; if($a != " "){ $a = $a; } if($count == 0) { $image = $image . $url.$a . " "; } //if($count == 1){ $image = $image . $url.$a; } }unset($a); $count = -1; $imagesplit = preg_split('/ /', $image, 2, PREG_SPLIT_OFFSET_CAPTURE); print_r($imagesplit); //$imagenospace = str_replace("png ", "png", $imagesplit); //regex out png, add new extension bmp to $thisimagetext below //$imagenospace2 = str_replace("png/", "png/ ", $imagenospace); //regex out png, add new extension bmp to $thisimagetext below //echo "$imagesplit[1]do"; //Create the Letters Image Objects foreach($imagesplit as $a){ $count = $count + 1; if($count == 0){ $imageagain = imagecreatefrompng($a); } //if($count == 1){ $imageagain2 = imagecreatefrompng($a); } //$imageagain = $imageagain . imagecreatefrompng($a) . " "; }unset($a); //$imagesnow = preg_split('/ /', $imageagain, 2, PREG_SPLIT_OFFSET_CAPTURE); echo "*** $imageagain *** $imageagain2 ***"; //print_r($imagesnow); //Create Canvas //$photoImage = imagecreate($imagesplit, 500); //$image = imagecreatefrompng($imagesplit[0]); $image = $imageagain; $image_width = imagesx($image); //////////////////// resize image from 400 x 400 to 200 x 200 // The file $filename = $image; echo "*** $filename filename ***"; // Set a maximum height and width $width = 535; $height = 535; // Content type //header('Content-Type: image/jpeg'); // Get new dimensions list($width_orig, $height_orig) = getimagesize($filename); //////////////////////$ratio_orig = $width_orig/$height_orig; ///////////////////////if ($width/$height > $ratio_orig) { ////////////////////// $width = $height*$ratio_orig; ////////////////////////} else { ////////////////////// $height = $width/$ratio_orig; ///////////////} // Resample $image_p = imagecreate($width, $height); //$image = imagecreatefrompng($filename); imagecopyresized($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig); // Output //imagejpeg($image_p, null, 100); ImagePNG($image_p, null, 100) ; //output to browser /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //calculate Canvas Width foreach($image['obj'] as $a){ if(!isset($canvasW)){ $canvasW = 0; } $canvasW = imagesx($a) + $canvasW; }unset($a); //Create Canvas $photoImage = imagecreate($canvasW, 100); $white= imagecolorallocate($image, 255, 255, 255); $yellow= imagecolorallocate($image, 255, 255, 0); $red= imagecolorallocate($image, 255, 0, 0); $grey= imagecolorallocate($image, 125, 125, 125); $green= imagecolorallocate($image, 0, 255, 255); $blue= imagecolorallocate($image, 0, 0, 255); $black= imagecolorallocate($image, 0, 0, 0); //imagealphablending($photoimage, false); ///imagesavealpha($photoImage, true); //$trans_color = imagecolorallocatealpha($photoImage, 0, 0, 0, 127); //imagefill($photoImage, 0, 0, $trans_color); //Merge Images foreach($image['obj'] as $a){ $width = ceil(imagesx($a)); if(!isset($offset)){ $offset = 1; } //imageComposeAlpha($photoImage, $a, $offset, 0,$width,100); if($offset >= 1){ $offset = $offset + $width; } }unset($a); // Save it uncomment below command //Imagepng($photoImage, 'done.png'); // Output to browser Imagepng($photoImage); //Destroy all Image Objects //foreach($image['obj'] as $a){ //ImageDestroy($a); //} //ImageDestroy($photoImage); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // config -- //$src = array ("/www/cgi/CRcode/bitmapsgif/cqcode1679486034.png", "/www/cgi/CRcode/bitmapsgif/cqcode1679485240.png"); //header('Content-type: image/png'); //function imageComposeAlpha( &$src, &$ovr, $ovr_x, $ovr_y, $ovr_w = false, $ovr_h = false, $opc = 127){ imagecopy($src, $ovr, $ovr_x, $ovr_y, 0, 0, imagesx($ovr), imagesy($ovr) ); //} //function imagesavealpha($photoImage, true); ////////////////////////---////////----------------------------------- $url = "/www/cgi/CRcode/bitmapsgif/"; $getsimulator = 'cqcode1679486034.png cqcode1679485240.png'; //Covert the String into an Array //$letter = str_split(strtoupper ($_GET['name'])); $letter = preg_split('/ /', $getsimulator); //Populate Letters Image Path $count = -1; foreach($letter as $a){ //exeptions $count = $count + 1; if($a != " "){ $a = $a; } if($count == 0) { $image = $image . $url.$a . " "; } if($count == 1){ $image = $image . $url.$a; } }unset($a); $src = preg_split('/ /', $image, 2, PREG_SPLIT_OFFSET_CAPTURE); print_r($src); //$h = $imagesplit[0]; //$b = $imagesplit[1]; //$h = '/www/cgi/CRcode/bitmapsgif/cqcode1679486034.png'; //$b = '/www/cgi/CRcode/bitmapsgif/cqcode1679485240.png'; //echo "*** $h *** $b ***"; $src = array ("http://boughtupcom.scriptmania.com/cgi/CRcode/bitmapsgif/cqcode1679486034.png", "http://boughtupcom.scriptmania.com/cgi/CRcode/bitmapsgif/cqcode1679485240.png"); $under = 1; // combine images underneath or not? // -- end of config $imgBuf = array (); $maxW=0; $maxH=0; foreach ($src as $link) { switch(substr ($link,strrpos ($link,".")+1)) { case 'png': $iTmp = imagecreatefrompng($link); break; case 'gif': $iTmp = imagecreatefromgif($link); break; case 'jpeg': case 'jpg': $iTmp = imagecreatefromjpeg($link); break; } if ($under) { $maxW=(imagesx($iTmp)>$maxW)?imagesx($iTmp):$maxW; $maxH+=imagesy($iTmp); } else { $maxW+=imagesx($iTmp); $maxH=(imagesy($iTmp)>$maxH)?imagesy($iTmp):$maxH; } array_push ($imgBuf,$iTmp); } $iOut = imagecreate ($maxW,$maxH) ; $pos=0; foreach ($imgBuf as $img) { if ($under) imagecopy ($iOut,$img,0,$pos,0,0,imagesx($img),imagesy($img)); else imagecopy ($iOut,$img,$pos,0,0,0,imagesx($img),imagesy($img)); $pos+= $under ? imagesy($img) : imagesx($img); //imagedestroy ($img); } imagePNG($iOut); //////////////////////////////////////////////////////////////////////////////////////////////// ////////////////// // change these // ////////////////// $file = "/www/cgi/CRcode/bitmapsgif/cqcode1679486034.png"; $padding = 90; $color = array(255, 255, 255); ///////////////////////////// // these can stay the same // ///////////////////////////// $image = imagecreatefrompng($c); //list($imageWidth, $imageHeight) = getimagesize($file); $size = getimagesize($c); $newimage=imagecreate($size[0], $size[1]+100); $gray=imagecolorallocate($newimage, 0xEE, 0xEE, 0xEE); imagefill($newimage,0,0,$gray); imagecopyresized($newimage, $image, 0, 0, 0, 0, $size[0], $size[1], $size[0], $size[1]); imagecopymerge($newimage, $image, 0, 0, 0, 0, $size[0], $size[1], 100); // 420 moves superimposes qr left and right imagepng($newimage); $size = getimagesize($c); echo "$size[0]***$size[1]***$size[2]"; ///array 600 750 3 $blank = imagecreate($size[0], $size[1] + $padding); $original = imagecreatefrompng($c); $col = imagecolorallocate($blank, $color[0], $color[1], $color[2]); imagefilledrectangle($blank, 0, 0, $size[0], $size[1] + $padding, $col); imagecopyresized($blank, $original, 0, 0, 0, 0, $size[0], $size[1], $size[0], $size[1]); imagecopymerge($blank, $original, 0, 0, 0, 0, 0, 0, 100); // 420 moves superimposes qr left and right //header ('Content-type: image/png'); ImagePNG($blank);