Results 1 to 5 of 5
  1. #1
    iosoft is offline Upgraded User
    Join Date
    Dec 2005
    Posts
    1,272
    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 ?
    Signature Removed.

    No Referral Links allowed.

  2. #2
    Checksum is offline Privileged Users
    Join Date
    Aug 2005
    Posts
    1,534
    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
    Site /// MacBook 13" White /// Samsung Galaxy S + PL-30 /// iPad2 /// PS3 Slim

  3. #3
    iosoft is offline Upgraded User
    Join Date
    Dec 2005
    Posts
    1,272
    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.
    Signature Removed.

    No Referral Links allowed.

  4. #4
    Checksum is offline Privileged Users
    Join Date
    Aug 2005
    Posts
    1,534
    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.
    Site /// MacBook 13" White /// Samsung Galaxy S + PL-30 /// iPad2 /// PS3 Slim

  5. #5
    iosoft is offline Upgraded User
    Join Date
    Dec 2005
    Posts
    1,272
    ^ Thanks

    Great Find :hap2:
    Signature Removed.

    No Referral Links allowed.

 

 

Similar Threads

  1. Which PHP FORUM system for Mobile Platform ?
    By iosoft in forum Programming
    Replies: 3
    Last Post: 20-04-11, 07:19 PM
  2. Replies: 3
    Last Post: 16-06-10, 11:36 AM
  3. Need PHP HELP TO INSTALL PHP.
    By yohanns23 in forum Programming
    Replies: 8
    Last Post: 01-11-09, 09:39 PM
  4. PHP and PHP nuke
    By techboy in forum Programming
    Replies: 4
    Last Post: 28-03-06, 07:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +5.5. The time now is 06:58 AM. Powered by vBulletin® Version 4.1.12
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO 3.6.0 PL2