View Full Version : how to;
Jcshua
27-09-2006, 09:36 AM
make a javascript page so you can drag pictures onto a bg then people can save it onto there computer?
Jcshua
27-09-2006, 10:12 AM
like, if i have like a custom sig, theres renders, they can add pictures, then save then add there own text, etc.
so you can drag a pic onto a custom bg.
Is the picture something the user uploads? Or do you have various images/backgrounds which they can choose from?
Jcshua
27-09-2006, 10:17 PM
they can't upload, theres just one image and you can drag the images on the side onto the sig. pic/w.e
signature_creator.php:
<?php
$images[one] = 'imageOne.gif';
$images[two] = 'imageTwo.gif';
$images[three] = 'imageThree.gif';
if($_SERVER['PATH_INFO']=='/download') {
if(!is_numeric($_POST[position_y]) || !is_numeric($_POST[position_x])) die('ERROR LOL!');
if(!$im = imagecreatefromgif($images[$_POST[image]])) die('ERROR LOL!');
$bg = imagecreatefromgif('signature.gif');
list($imw, $imh) = getimagesize($images[$_POST[image]]);
imagecopymerge($bg, $im, $_POST[position_x], $_POST[position_y], 0, 0, $imw, $imh, 100);
header('Content-Type: image/gif');
header ("Content-Disposition: attachment; filename=sig.gif");
imagegif($bg);
exit;
}
?>
<html>
<head>
<title>Signature Editor</title>
</head>
<body style="text-align: center;">
<form method="POST" action="signature_creator.php/download">
Select your image: <br />
<input name="image" value="one" type="radio" /> <img src="imageOne.gif" /> <br />
<input name="image" value="two" type="radio" /> <img src="imageTwo.gif" /> <br />
<input name="image" value="three" type="radio" /> <img src="imageThree.gif" /> <br />
<hr /><br />
Click to position image & download signature: <br />
<input type="image" name="position" src="signature.gif" >
</form>
</body>
</html>
I haven't tested it, and I'm not sure how secure it is.
Jcshua
28-09-2006, 09:18 AM
cheers dude, i'll test it later today.
That's tasty
28-09-2006, 09:35 AM
Make a .swf?
Jcshua
28-09-2006, 09:54 AM
i would have to actionscript, i'm not very good with actionscripting, i need a easyier way.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.