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?
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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....
ASKER
Thanks I did think that but wasnt sure if I was missing something somewhere