acecool.. not that im cheap.. but doing the work myself only helps the learning process.
plus a partial part of your post alone.. found me this
http://ca.php.net/header
http://php.mirrors.ilisys.com.au/man...fromstring.php
http://ca.php.net/variables.external
http://ca3.php.net/gd
<?
$loadFile = "http://static.php.net/images/php.gif";
$im = imagecreatefromstring(file_get_contents($loadFile) );
then something else lol.
Whoa! now im in a whole other area.. can you rip a pic, and place your logo in it using a script?????????? or merge a gif onto a jpg? instead of manually in photoshop layering your logo on photos? ( that are yours in the first place of course!)
better yet.. automatic thumbnail maker script! ( bare with me im still somewhat of a newbie so this stuffs incredible to me)
this one below is worth lol $15 times 200,000. Since all search engines are starting to get into this
<?php
require("dbconfig.inc");
$id = $_GET['id'];
if($id) {
$link = @mysql_connect($host, $user, $password) or die("Could not connect: " . mysql_error());
@mysql_select_db($dbname, $link);
$query = "select filetype, image from pictures where id = $id";
$result = @mysql_query($query);
$data = @mysql_result($result,0,"image");
$type = @mysql_result($result,0,"filetype");
Header( "Content-type: $type");
$size = 150; // new image width
$src = imagecreatefromstring($data);
$width = imagesx($src);
$height = imagesy($src);
$aspect_ratio = $height/$width;
if ($width <= $size) {
$new_w = $width;
$new_h = $height;
} else {
$new_w = $size;
$new_h = abs($new_w * $aspect_ratio);
}
$img = imagecreatetruecolor($new_w,$new_h);
imagecopyresized($img,$src,0,0,0,0,$new_w,$new_h,$ width,$height);
// determine image type and send it to the client
if ($type == "image/pjpeg") {
imagejpeg($img);
} else if ($type == "image/x-png") {
imagepng($img);
} else if ($type == "image/gif") {
imagegif($img);
}
imagedestroy($img);
mysql_close($link);
};
?>