www.webdeveloper.com
Results 1 to 10 of 10

Thread: An Image Gallery

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Location
    Mississippi
    Posts
    1,063

    An Image Gallery

    Has anyone ever programmed their own custom image galleries using PHP and MySQL? I'm looking for feedback on the challenge of such a task.

  2. #2
    Join Date
    Jun 2008
    Location
    Right Behind You
    Posts
    215
    Not yet, but it's on the agenda.

    I did partially code one a while back, but the client dropped the project in the middle (60% up front, so no big deal), so I never finished it, but looking back, these were the hardest parts:
    • Categories: I have yet to learn a reliable way to create unlimited subcategories using MySQL, although it is definitely possible, and done very often. I've just never done it.
    • Uploads: A simple file uploader is relatively simple (!), but resizing...
    • Resizing: Good luck, because you'll need it. I have yet to find a resizing solution which works cross-environment, although I do have one that works pretty well that uses shell commands.
    Last edited by ayvegh; 10-29-2008 at 08:03 PM.

  3. #3
    Join Date
    Dec 2007
    Location
    Mississippi
    Posts
    1,063
    How proficient do you need to be in PHP and MySQL to do something like that? I'm still learning, but I've almost got a (pretty basic) news publishing script built.

  4. #4
    Join Date
    Jun 2008
    Location
    Right Behind You
    Posts
    215
    As proficient as you need to be.

    I don't know, but I wasn't as proficient then as I am now, so I'm assuming it can't be too hard, you just need patience, really.

    Don't worry, you can always ask us here for some help...

    ayvegh

  5. #5
    Join Date
    Oct 2008
    Posts
    10
    To be honest with you it really wouldn't be that hard. You would just need some decent skills in MySQL and php and jsut use imagemagick to downsize the images.

  6. #6
    Join Date
    Jun 2008
    Location
    Texas
    Posts
    84
    I have one that I use on many sites, and am now adding both the MySQL (for text for images, and image control) as well as the imagemagick for resizing. I have a great deal finished, and the entire project was actually a lot more simple than it might seem. Give it a shot, you will probably find it easy as well.
    I hope you found this answer when your manager told you to "just Google it".

    Ubuntu 10.04 LTS | Vim | Chromium/Google Chrome

    Intel Core 2 Duo | 8 GB DDR2 | 2x 500 GB WD HDD | ATI Quad Head | 3 22" AOC Monitors

    http://drupal.org/ | http://magento.org/ | http://cakephp.org

  7. #7
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,923
    And of course there are hundreds gallery scripts already out there, one of which likely meets your needs. So depending on your requirements, schedule, and budget; you may need to consider whether the learning experience is worth the time it will take to "roll your own" as opposed to using something already out there.

    http://www.opensourcecms.com/ has a dozen or so PHP gallery scripts you could take a look at.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  8. #8
    Join Date
    Dec 2007
    Location
    Mississippi
    Posts
    1,063
    To be honest, a lot of the stuff I ask about I'll probably never use for my own personal site. I'm interested in becoming a professional web developer/programmer, though. I like to be able to code my own applications as much as I possibly can.

  9. #9
    Join Date
    Jun 2008
    Location
    Right Behind You
    Posts
    215
    I say go for it, Joseph

  10. #10
    Join Date
    Dec 2007
    Location
    Mississippi
    Posts
    1,063
    I probably will, at some point. At this point, I don't know if my website will ever need an image gallery (depends on how much it grows and what the members want), so it would be kind of a shame to build one and never have any use for it. But then again, if I don't attempt it, it's always going to nag at me in my head (just the way I am).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles