this may not be possible,but i was wondering if there were a way to reduce image size and quality.I have an html form which allows users to upload images.I know i can limit the weight of these images and then specify a size in the image tag.however,my clients may not be able to reduce image quality so i'd probably have to do it manually myself.having the process automated would be very cool if it were possible.
Manuals are your friends.
Read the php manual:
-- begin quote -- ImageJPEG
(unknown)
ImageJPEG -- Output image to browser or file
Description
int imagejpeg (int im [, string filename [, int quality]])
-- end quote --
It\'s possible, but you have you install the GD library for that, and i don\'t know how to do that..
I have the same prob as you, i\'m on windows.. so i would be really cool if someone helped us out here..
Thanks!
/Stefan
You might want to search the forim as this has been asked many many times. It is also explained in the manual and on the GD website.
To get GD running on Windows simply point extension_dir in your php.ini file to the right place (ie, in mine it points to "extension_dir=c:\php\extensions"). Then add the line "extension=php_gd.dll" to your php.ini file (no quotes).
After that you're are ready to use the GD image functions. Check out http://www.php.net/manual/ref.image.php for more info on how to do what you'd like.
G'luck,
Jack