GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Dynamic Gallery question for programmers (https://gfy.com/showthread.php?t=156021)

besterman 07-23-2003 09:35 PM

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 07-23-2003 09:51 PM

Quote:

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...

grumpy 07-23-2003 09:56 PM

if you use php for it you can read the dimensions of the pic and then use them the way suitable.

liquidmoe 07-23-2003 10:07 PM

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.


All times are GMT -7. The time now is 09:27 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123