/ Published in: PHP

This is a simple script that will allow you to crop an image that you upload from a form.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$file = $_FILES['image']['name']; $newwidth = 200; // SET YOUR DESIRED WIDTH $small_image = "small_".$small_image; $smallfile = $_FILES['image']['tmp_name']; $newheight=($height/$width)*$newwidth; $filename = $imagepath."small/".$small_image;
URL: http://www.aristoworks.com
Comments
