TechEnclave
New Tech Posts
New Market Posts



Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 13 Nov 08, 01:00 PM
iosoft's Avatar
Explosive Member
 
Join Date: Dec 2005
Location: Kolkata, INDIA
Posts: 1,533
iosoft is very Respectable iosoft is very Respectable iosoft is very Respectable iosoft is very Respectable
Query PHP Gallery System help

Hi

I need your suggestion on the image UPLOADING system for My Gallery.

This Gallery is a community gallery. Every user can upload (moderator will approve) just like a forum-system.

I am worried about the Image-Upload procedure.
Here are the steps -

1. Upload at most 5 images at a time through the form.
-for each image-
2. VALIDATE
3. The Images will be actually uploaded on a totally different Image Server - http://gallery.mysite.com/images/ (secondary server)
4. Upload-info will be added in the MySQL DB.
5. Create Thumbnail and store it in - http://gallery.mysite.com/images/TN/ (secondary server)
6. Watermark the main image.

As you can see that there are hell lots of steps.

Now, if I do all of the above in a single PHP script, there is a high chance that it will get 'time-out' or 'memory-out' by my server.
If I do it different scripts, user will see that pages gets redirected one after another. JUMPING JUMPING.
If I do this CORN based job, doesn't look good.

What do you suggest ?
Reply With Quote
  #2 (permalink)  
Old 13 Nov 08, 04:26 PM
Checksum's Avatar
I am Mac
 
Join Date: Aug 2005
Location: Chennai
Age: 23
Posts: 1,401
Checksum is highly Reputable Checksum is highly Reputable Checksum is highly Reputable Checksum is highly Reputable Checksum is highly Reputable Checksum is highly Reputable
Default Re: PHP Gallery System help

Have you tried using already available image management systems? For example Coppermine Photo Gallery is freely available, and has support for most of the operations you asked for. Also try out the scripts in the image gallery section in Home - OpenSourceCMS
Reply With Quote
  #3 (permalink)  
Old 13 Nov 08, 04:35 PM
iosoft's Avatar
Explosive Member
 
Join Date: Dec 2005
Location: Kolkata, INDIA
Posts: 1,533
iosoft is very Respectable iosoft is very Respectable iosoft is very Respectable iosoft is very Respectable
Default Re: PHP Gallery System help

No, due to some advance features, I have to build of my own.
Else too much Modification..... and also the CORE system is almost ready.
Just working of permission system and this uploading system.

Actually, currently using simple file upload method.
now want to enhance with the above features.
Reply With Quote
  #4 (permalink)  
Old 13 Nov 08, 06:09 PM
Checksum's Avatar
I am Mac
 
Join Date: Aug 2005
Location: Chennai
Age: 23
Posts: 1,401
Checksum is highly Reputable Checksum is highly Reputable Checksum is highly Reputable Checksum is highly Reputable Checksum is highly Reputable Checksum is highly Reputable
Default Re: PHP Gallery System help

For your requirement, I don't think a cron job would cut it. Cause everytime a user uploads, it has to be called, and it may keep running forever depending on the number of uploads.

I guess you can do steps 1-4 in a single script. Validation for file extension, size, etc is better handled via javascript. Wouldn't need a very complex script to do that. As for watermarking, and thumbnail generation use gd or imagemagick bindings for php.

For example - Class: Thumbnail Party (thumbnail, watermark, imagemagick) - PHP Classes. It can automatically create a thumbnail and watermark the image for you. You can then store them in separate directories.

Last edited by Checksum; 13 Nov 08 at 06:13 PM.
Reply With Quote
  #5 (permalink)  
Old 13 Nov 08, 06:19 PM
iosoft's Avatar
Explosive Member
 
Join Date: Dec 2005
Location: Kolkata, INDIA
Posts: 1,533
iosoft is very Respectable iosoft is very Respectable iosoft is very Respectable iosoft is very Respectable
Thumbs Up Re: PHP Gallery System help

^ Thanks
Great Find

Last edited by iosoft; 13 Nov 08 at 06:28 PM.
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search TechEnclave
Have some Fun!


Main Sections     New To TechEnclave?     Need Help?

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0