class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I am having problems resizing images. I am using WAMP 5, with PHP ver 5.2.5 and have enabled gd support.
GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.1.9 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled
My form is as follows and calls the image_uploader.php script: <form enctype="multipart/form-data" action="image_uploader.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="8000000" /> File: <input name="uploadedfile" type="file" size="50"/><br /> <input type="submit" value="Upload File" /> </form>
When I remove the $handle->image_resize = true; line from the above code the image file is uploaded to the destination directory above with the original dimensions. However, when image_resize is set to true as above, the image file is not uploaded at all.
I am having problems resizing images. I am using WAMP 5, with PHP ver 5.2.5 and have enabled gd support.
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
My form is as follows and calls the image_uploader.php script:
<form enctype="multipart/form-data" action="image_uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="8000000" />
File: <input name="uploadedfile" type="file" size="50"/><br />
<input type="submit" value="Upload File" />
</form>
image_uploader.php script:
When I remove the $handle->image_resize = true; line from the above code the image file is uploaded to the destination directory above with the original dimensions. However, when image_resize is set to true as above, the image file is not uploaded at all.
Any ideas...? Thanks very much