We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi, im trying to get overlay image from upload form with this code but it not work. please help. Thank you!
<form method="post" enctype="multipart/form-data"> <table> <tr> <td>Upload Image*</td> <td><input type="file" name="uploadfile" /></td> </tr> <tr> <td colspan="2"> <small><em>* Acceptable image formats include: GIF, JPG/JPEG and PNG. </em></small> </td> </tr> <tr> <td colspan="2" style="text-align: center;"> <input type="submit" name="submit" value="Upload"/> </td> </tr> </table> </form> <?php if(isset($_POST['submit'])){ require_once('../src/PHPImage.php'); $bg = './img/benji.jpg'; $overlay = $_FILES['uploadfile']['tmp_name']; $image = new PHPImage(); $image->setDimensionsFromImage($bg); $image->draw($bg); $image->draw($overlay, '50%', '75%'); .... $image->show(); } ?>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
hi,
im trying to get overlay image from upload form with this code but it not work.
please help.
Thank you!
The text was updated successfully, but these errors were encountered: