FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

PHP image uploads with progress bar AND resizing? [Resolved]

 


Traveller
With PHP, it's not too difficult to allow users to upload images to a site, but plain PHP does not show the users any kind of display to indicate the progress of the upload.

Although I have seen a few free programs that use Java or Perl to implement a progress bar, I would also like to find something that would resize large image files on the client side before they are uploaded in order to cut down on allocation and bandwidth usage, as well as upload time. So far, the only program I have seen that would provide this latter functionality is NOT free.

What are YOUR experiences with upload progress bars, and have you found any good, free software that would automatically resize images before uploading, and without the (inexperienced) users' having to resize the images with a separate program?

Thanks!


Last edited by Traveller on Mon Apr 17, 2006 4:46 am; edited 1 time in total
modak
Traveller wrote:
With PHP, it's not too difficult to allow users to upload images to a site, but plain PHP does not show the users any kind of display to indicate the progress of the upload.


Eh, looks like you're looking for some kind of AJAX toolkit. Maybe this link will help:
http://blog.joshuaeichorn.com/archives/2005/05/01/ajax-file-upload-progress/

Traveller wrote:
Although I have seen a few free programs that use Java or Perl to implement a progress bar, I would also like to find something that would resize large image files on the client side before they are uploaded in order to cut down on allocation and bandwidth usage, as well as upload time. So far, the only program I have seen that would provide this latter functionality is NOT free.


This one is difficult. If you want to resize images on the server side, you might look to the ImageMagick suite (I'm assuming you're using Linux on the server side).

Maybe I didn't exactly understand what your objectives are, but if you'd point out the non-free software that does what you want to achieve, please post a link. Forum members might be able to come up with a free alternative, or in its absence, hack together something that you can use
Traveller
modak wrote:
Eh, looks like you're looking for some kind of AJAX toolkit. Maybe this link will help:
http://blog.joshuaeichorn.com/archives/2005/05/01/ajax-file-upload-progress/

Thanks. I'll check it out.

modak wrote:
This one is difficult. If you want to resize images on the server side, you might look to the ImageMagick suite (I'm assuming you're using Linux on the server side).

It's super easy on the server side but, as I stated, the objective is to cut down on allocation and bandwidth usage. In other words: if the images are not resized until they reach the server, it take time and bandwidth for both the user and the server. Then, once they are on the server, they take up space until they are resized and until the original uploads are deleted. The upload time issue is particularly of interest here, since we the local ISP does not have the same kind of bandwidth as the ISPs in the States (e.g. a 128k connection is $90/mo).

modak wrote:
Maybe I didn't exactly understand what your objectives are, but if you'd point out the non-free software that does what you want to achieve, please post a link. Forum members might be able to come up with a free alternative, or in its absence, hack together something that you can use


Given the nature of Frihost, I was hoping not to be perceived as promoting any kind of paid software, but since you asked, and since I've made it clear that I'm looking for something other than the paid software, I'll mention it so you may examine it yourself: http://www.radinks.com/upload. It does have a free version, which does include an upload progress bar, but the java-based, client-side image resizing is only available in the paid version, and the free version has a lower file-size limit.
modak
Quote:
Given the nature of Frihost, I was hoping not to be perceived as promoting any kind of paid software, but since you asked, and since I've made it clear that I'm looking for something other than the paid software, I'll mention it so you may examine it yourself: http://www.radinks.com/upload. It does have a free version, which does include an upload progress bar, but the java-based, client-side image resizing is only available in the paid version, and the free version has a lower file-size limit.


Hm...No there aren't any free alternatives out there. It looks to me to be a Java Bean that compresses the file using the inbuilt Gzip compression. Looks like you will have to roll your own, or ask the gurus for help. Me ? I know very little Java Sad

Looking at what the software does, there is really no alternative other than a Java application since there is no other platform that is cross-platform. . Since you mentioned that you want a free software (free as in beer) you might as well try the lightweight version of the software, or does it not do the compression ? If you however manage to go ahead and build the software, here's a request: please support Free software (free as in freedom) and use FreeSwing and GNU Classpath. Don't worry, the application so developed will work alright on Sun Java too.
Traveller
Yes. It is an applet, since it needs to do client-side things. It doesn't just gzip, but actually scales the image size, not just the file size - allowing you to specify the maximum width or height.

Indeed, free would be better, but the free ("lite") version does not include the client-side image scaling. Upon further recommendation from me, the people who would have to use this have agreed that it would make things a lot easier and better for them to use the functionality of the paid version, and that paying for it would be worth it.

Thanks for the help, everyone.
Related topics

get size of uploading file in perl
[java scripts] Text effect , img ....
PHP Image suddenly doesn't work?
php image exif functions
PHP image

Which is the best Mobile phone
Hall of Hero's site
PHP Image Questions
Opening any image with PHP. Couldn't find anywhere.
Upload Script

Display random image on foreign site
Best Upload
some AJAX/PHP problems...
Adding a Nav Bar to my PHP forum
E-Cards with PHP & MySQL
Reply to topic    Frihost Forum Index -> Scripting -> Website Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.