Dynamic Gallery question for programmers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • besterman
    Confirmed User
    • Jan 2003
    • 623

    #1

    Dynamic Gallery question for programmers

    Has anybody solved the problem of how to layout a dynamically generated gallery where the thumbs and images are both landscape and portrait and vary in the # on the page? Is this an if-else question and a query to each image type? Is there a faster solution?
  • Arty
    Confirmed User
    • Nov 2002
    • 880

    #2
    Originally posted by scorpion3600
    Has anybody solved the problem of how to layout a dynamically generated gallery where the thumbs and images are both landscape and portrait and vary in the # on the page? Is this an if-else question and a query to each image type? Is there a faster solution?
    Try placing them in a fixed size table area based on the biggest one...

    Comment

    • grumpy
      Too lazy to set a custom title
      • Jan 2002
      • 9870

      #3
      if you use php for it you can read the dimensions of the pic and then use them the way suitable.
      Don't let greediness blur your vision | You gotta let some shit slide
      icq - 441-456-888

      Comment

      • liquidmoe
        Confirmed User
        • Mar 2002
        • 4994

        #4
        use and template toolkit. Separates your code and html so you dont go blind and/or stupid when you do updates and it's very robust in it's features so you could pretty much just chalk it up anyway you wanted. Use ImageMagick/perlmagick to get dimensions and resize to thumbnails on the fly or once and cache.

        Take Luck!

        Comment

        Working...