Hi there mate i'll suggest you to have a look to ImageMagick to do tricky things to images
heres the address: http://www.imagemagick.org/ have fun!! On Sat, Mar 29, 2003 at 12:58:17AM -0500, Sebastian wrote: > hello, > > I have some images in mysql, currently the images aren't resize, and this > displays the image, like: image.php?id=1 > > But i'd like to resize the image with html tags: e.g. width="300" and > print/echo it. > > since Content-type is for image is it even possible? If not then how about > dynamically resizing them such as: > image.php?id=1&width=300 is that possible? If so, please let me know how. > > Thanks in advanced. > > cheers, > Sebastian > > <?php > $conn = mysql_connect("host", "root", "pass") OR DIE (mysql_error()); > @mysql_select_db("images", $conn) OR DIE (mysql_error()); > > $sql = ("SELECT * FROM images WHERE id = '$_GET[id]'"); > $result = mysql_query($sql, $conn); > > if (mysql_num_rows ($result ) > 0) > { > $row = @mysql_fetch_array($result); > $image_type = $row['type']; > $image = $row["image"]; > header ("Content-type: $image_type"); > print $image; > } > ?> -- Maciek Ruckgaber Bielecki Programacion http://colegiosenlinea.com "We have penetrated far less deeply into the regularities obtaining within the realm of living things, but deeply enough nevertheless to sense at least the rule of fixed necessity ..... what is still lacking here is a grasp of the connections of profound generality, but not a knowledge of order itself." --Albert Einstein-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php