1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

help in PHP!

Discussion in 'Members' Lounge' started by ovcrash, Jan 20, 2004.

  1. ovcrash

    ovcrash Senior Member

    Messages:
    408
    Likes Received:
    0
    Joined:
    Sep 29, 2002
    Location:
    Quebec, Canada
    Maybe not the place to ask all of this, but you guys seem to know some in PHP and your nice people so...

    I have a directory full of Jpeg images, i want to make a little PHP, that would take all the jpeg in that directory, make thumbnail with them and show them on a webpage and when i click on the image it shows the big version of it. Kinda like a album.

    Anyone has a idea, or php i could use?

    thanks alot...
     
  2. DarkHand

    DarkHand Senior Member VIP

    Messages:
    5,117
    Likes Received:
    241
    Joined:
    Sep 30, 2002
    Location:
    Chicago, IL
    Can't help you exactly, but I know you'd need some sort of serverside software to resize the full size images to display them as thumbnails, else you'll just have the full images loading in a thumbnail space, and that kind of defeats the purpose of thumbnails, bandwidth-wise. There are lots of free open source gallery packages out there that do all the hard stuff for you. Google is your friend.
     
  3. Bob Vila

    Bob Vila ɐןıʌ qoq Admin VIP

    Messages:
    4,670
    Likes Received:
    57
    Joined:
    Jul 4, 2003
    Location:
    Bristol, Ct.
    do you have photoshop?
     
  4. DarkHand

    DarkHand Senior Member VIP

    Messages:
    5,117
    Likes Received:
    241
    Joined:
    Sep 30, 2002
    Location:
    Chicago, IL

    ^-- That too. :)

    Make your own thumbnails, make the gallery in html, and forget PHP. :)
     
  5. ovcrash

    ovcrash Senior Member

    Messages:
    408
    Likes Received:
    0
    Joined:
    Sep 29, 2002
    Location:
    Quebec, Canada
    I know that would be easy, but th problem is that the image gallery change often so doing it on html would take hella long time...

    that's why i want something in php...
     
  6. pissedoffsol

    pissedoffsol RETIRED

    Messages:
    49,693
    Likes Received:
    54
    Joined:
    Sep 28, 2002
    Location:
    Retirement Home
    you can make a scalar of the image... but its not going to save any DL time. the images are still going to be full file size.

    if you have GD2.0 or higher on your server... you can upload them much like our gallery does, and auto creates a thumbnail using GD's imagecreatetruecolor() function.

    but if they are already uploaded via FTP, it really will be a bitch to resize the images on DOWNLOAD. it would be really slow...
     
Verification:
Draft saved Draft deleted

Share This Page