Anybody know of any free decent image uploading scripts?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
SteveC
Forum Commoner
Posts: 44
Joined: Thu Dec 04, 2008 2:39 pm
Location: Lansing, MI

Anybody know of any free decent image uploading scripts?

Post by SteveC »

Hi everybody,

I'm Steve - new here! I've been looking for a PHP forum for a while but this is the first one I've actually joined.

My site has lots of members, and one feature I want to offer is photo hosting. However, I want to make uploading the photos as painless as possible. Allowing the members to open an applet where they can browse their computer, check photos they want to upload, click upload and see the end result would be ideal. Does anybody have any experience in this area that they'd care to share?

Steve.
User avatar
Peter Anselmo
Forum Commoner
Posts: 58
Joined: Wed Feb 27, 2008 7:22 pm

Re: Anybody know of any free decent image uploading scripts?

Post by Peter Anselmo »

Hi Steve,

There's two parts to your questions - the first is having the user select and submit an image. The second is having php process and store that image.

For the first part - If you use "file" as an input type in a form, it will automatically pop up an applet where the user can select their file. A complete sample may look like this:

Code: Select all

<form method="post"  enctype="multipart/form-data" action="your_url_here">
<input type="file" name="image" />
<input type="submit" value="Upload" />
</form>
For the second part - you can access the image from php in the $_FILES array.

Code: Select all

$uploadedImage = $_FILES['image'];
Then it gets tricky, because now you have to resize it, convert it, save it, and display it. :P I would search google for a "PHP Image Class" which will process the image and save it. You can also find lots of good info in the PHP Manual about image processing. It will probably take a lot of trial and error, but stick with it, and be sure to post any specific questions you get.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Anybody know of any free decent image uploading scripts?

Post by alex.barylski »

Anybody know of any free decent image uploading scripts?
Does anybody have any experience in this area that they'd care to share?
Here is my best experience...in software your given a pie with three parts...I love Pie. :P

The three peices of pie are as follows:

1. Fast
2. Good
3. Cheap

The only caveat when it comes to this pie, is you can only ever have 2 of the 3 peices, never more...only less. :P

p.s-Uploading images is easy...making it secure and reliable is another story all togather. Have you searched SourceForge? How about HotScripts? There are literally countless image uploading scripts...

Gallery2 is a well known, powerful image manager...and it's free and very customizable...but it's not fast, easy or painless to use...

Cheers,
Alex
SteveC
Forum Commoner
Posts: 44
Joined: Thu Dec 04, 2008 2:39 pm
Location: Lansing, MI

Re: Anybody know of any free decent image uploading scripts?

Post by SteveC »

Peter Anselmo wrote:Hi Steve,

There's two parts to your questions - the first is having the user select and submit an image. The second is having php process and store that image.

For the first part - If you use "file" as an input type in a form, it will automatically pop up an applet where the user can select their file. A complete sample may look like this:

Code: Select all

<form method="post"  enctype="multipart/form-data" action="your_url_here">
<input type="file" name="image" />
<input type="submit" value="Upload" />
</form>
For the second part - you can access the image from php in the $_FILES array.

Code: Select all

$uploadedImage = $_FILES['image'];
Then it gets tricky, because now you have to resize it, convert it, save it, and display it. :P I would search google for a "PHP Image Class" which will process the image and save it. You can also find lots of good info in the PHP Manual about image processing. It will probably take a lot of trial and error, but stick with it, and be sure to post any specific questions you get.
Hey, thanks for the reply. This much I've managed to do, the problem is that many of the members complain about how long it takes to upload. I know that improving the user experience makes it more likely that these people will stay at the site, and so now I've got to find some way to basically streamline the whole process.
SteveC
Forum Commoner
Posts: 44
Joined: Thu Dec 04, 2008 2:39 pm
Location: Lansing, MI

Re: Anybody know of any free decent image uploading scripts?

Post by SteveC »

PCSpectra wrote:
Anybody know of any free decent image uploading scripts?
Does anybody have any experience in this area that they'd care to share?
Here is my best experience...in software your given a pie with three parts...I love Pie. :P

The three peices of pie are as follows:

1. Fast
2. Good
3. Cheap

The only caveat when it comes to this pie, is you can only ever have 2 of the 3 peices, never more...only less. :P

p.s-Uploading images is easy...making it secure and reliable is another story all togather. Have you searched SourceForge? How about HotScripts? There are literally countless image uploading scripts...

Gallery2 is a well known, powerful image manager...and it's free and very customizable...but it's not fast, easy or painless to use...

Cheers,
Alex

Hi Alex,

Thanks, that'll be helpful. I'll take a look at Gallery2.

I've only ever really checked Google. I guess I'll have to settle for something and just install it. Eventually I'd like to write my own applet, but I'm not quite confident enough to do that yet.

Steve.
Post Reply