Link to home
Start Free TrialLog in
Avatar of misi_uk
misi_uk

asked on

Reducing filesize locally before upload?

Is it possible to reduce a file size of an image BEFORE its uploaded to my server.
My php uploads have a limit of 2mb I could just increase it but I have about 100 uploads of some quite large images a day onto my site and would like to know if its possible to reduce this locally before it uploads?

My alternative would be asking the visitors to keep the size down before uploading, but  some users dont even know what 2mb means. The easier I can make it the better but at the same time I dont want huge files eating at my bandwidth which is what is happening at the moment!

I know there is imagemagick which is what I am currently using to resize and create thumbnails but I want the original file compressed before upload.

Is this possible?
Avatar of Member_2_4694817
Member_2_4694817

Yes, your users can download and install some image manipulating software like GIMP and edit their images (e.g. scale down or reduce jpeg quality) until the size requirements are met.
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can change the 2mb limit by configuring the server "php.ini"
post_max_size=16m
upload_max_filesize=16m

or if you dont have access to the php.ini in the server you can make these changes in  ".htaccess" file

php_value post_max_size 16 MB
php_value upload_max_filesize 16 MB
php_value max_execution_time 60

I Hope this help you.
Other solution is that you give those users ftp access....
Avatar of misi_uk

ASKER

Thanks I did think that but wasnt sure if I was missing something somewhere