Les
It's been several years but there was a tag in the tag lib that did
this -- cfimagesize or some such!
Dick
On Friday, April 4, 2003, at 08:37 PM, Les Mizzell wrote:
> I've got a data-driven photo gallery on a site that's working pretty
> good,
> but I'd like to be able to dynamically switch between two or three
> different
> layouts, dependant on the pixel width or height of an image called
> from the
> database, which has the link ("myimage.jpg") in it. What I'm trying to
> do:
> Images up to 300 pixels wide would have text descriptions to the right
> or
> left. Images over 300 would have the text top/bottom instead...
>
> Does anybody have any pointers to a method to dynamically determine the
> width of an image, which I can then use in a cfswitch to call the
> appropriate layout?
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4