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?
Dynamic Gallery question for programmers
Collapse
X
-
Try placing them in a fixed size table area based on the biggest one...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? -
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.Comment


Comment