i had write code using php, user may add their own text in the image that has been retrieve from database. but now i having a problem how to save the new image(include the text) in the database.
Code:
Header ("Content-type: image/jpeg");
$productId = $_REQUEST ['productId'];
$image = $_REQUEST ['image'];
$size = $_REQUEST ['textSize'];
$x = $_REQUEST ['xPosition'];
$y = $_REQUEST ['yPosition'];
$y = $_REQUEST ['yPosition'];
$img = imagecreatefromjpeg($image);
$color = ImageColorAllocate ($img, 500, 500, 100);
$textInput = $_REQUEST ['textName'];
ImageString ($img, $size, $x, $y, $textInput, $color);
Imagejpeg ($img);
Comment