Current location: Hot Scripts Forums » Programming Languages » PHP » Image uploading help


Image uploading help

Reply
  #1 (permalink)  
Old 09-26-06, 05:10 PM
Dan Man Dan Man is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Image uploading help

Hi, I'm a relatively new programmer working on a project. The project calls for uploading images to the server and the guy wants the users to be able to upload any image and have the script make the file size lower. Now i've done some research and found that this can be done, but by reducing image quality. Is there any way to reduce the file size and still perserve as much quality as possible. And can this method work for an image of ANY size?
Reply With Quote
  #2 (permalink)  
Old 09-26-06, 05:48 PM
mousegu mousegu is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Well the only other way is ziping (which wont do you any good I assume), or changing the file type (which in some cases will also reduce image quality).

If you are working with jpgs, you can usually reduce the image quality from 100% to 85% without much difference to the untrained eye.

Hope that helps.
__________________
SSP
Professional Web Design

SSP Website
Reply With Quote
  #3 (permalink)  
Old 09-26-06, 05:53 PM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
The common image file formats - jpg/jpeg/gif... are already encoded/compressed (which is why you only get a small percentage reduction in size when you zip them.) The only way to reduce file size is to reduce the size of the image or reduce the image quality.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Reply With Quote
  #4 (permalink)  
Old 09-26-06, 10:10 PM
Dan Man Dan Man is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the feedback guys.
Reply With Quote
  #5 (permalink)  
Old 09-28-06, 03:44 AM
daleylay daleylay is offline
Newbie Coder
 
Join Date: Aug 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
few months ago i also looking for this.I do a search in this site and found some demo so i download so of them. i remember one of them can do this function, but i didn't keep them. maybe you would like to try searching. good luck.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Programmer Needed] Customer Image Uploading Script *** xxkylexx Job Offers & Assistance 5 06-03-06 07:02 PM
Request: text form and image uploading script (PHP) YHIEddie Script Requests 0 03-18-05 05:22 PM
Multiple Image Uploading php-learner PHP 2 01-17-05 05:46 PM
Image Uploading wit usr and pwr SnAkE PIT Script Requests 2 10-20-04 09:12 PM
problem with uploading image mivec PHP 6 04-15-04 11:52 PM


All times are GMT -5. The time now is 05:40 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.