Thumbnails - on the fly or premade?

Discussion in 'PHP' started by TheNoose, Mar 30, 2009.

  1. #1
    So basically I have an image gallery site that I'm starting up. What I'd like to do is have 3 or 4 rows of 4 pictures that are pulled randomly from the gallery and displayed on the sidebar.

    Is it best to pre make these thumbnails and have them pulled from a separate folder and the linked to the main images... or would it be best to generate them on the fly from the original images?

    What would be best speed wise?

    Also, if anyone wants to do this for me, give me a quote through PM - I know there are many free thumbnail creators out there, so all that would need done is implementation.
     
    TheNoose, Mar 30, 2009 IP
  2. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #2
    cached will be better performance, since it doesn't have to be processed every time it loads.
     
    Kaizoku, Mar 30, 2009 IP
  3. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #3
    How about generating them on the fly the first time they are used, then caching them so they don't have to be generated again?
     
    SmallPotatoes, Mar 30, 2009 IP
  4. TheNoose

    TheNoose Peon

    Messages:
    1,005
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That's a good idea... I wonder if the existing scripts do this.
     
    TheNoose, Mar 31, 2009 IP