I just went through all of this and found an image tag at MM "cfx_imagecr".

You give this tag the image location and it creates a thumbnail. Then you
just link it to a popup. 

I still have some work to do on it (and the rest of the site) but you may
look at it's results at http://www.mycrazymail.com/. Below is a snip of the
code to produce the gallery. Only the image name is in the DB.

<cfquery datasource="AppDatasource#" name="QryGetGallerys2">
SELECT MCM_BligPics.PhotoGUID, MCM_BligPics.PhotoID, MCM_BligPics.Photo,
MCM_BligPics.Thumbnail, MCM_BligPics.MCM_BligGUID, 
       MCM_BligPics.Caption, MCM_BligPics.Link, MCM_BligPics.GalleryGUID,
MCM_BligGallerys.GalleryID
FROM   MCM_BligPics LEFT OUTER JOIN
       MCM_BligGallerys ON MCM_BligPics.GalleryGUID =
MCM_BligGallerys.GalleryGUID
WHERE  (MCM_BligPics.GalleryGUID = '#GalleryGUID#')
ORDER BY PhotoID
</cfquery>

<cfset GetImagePath =
"#expandPath('../Images/Users/#QryGetLogin.BligID#/Gallerys/#QryGetGallerys2
.GalleryID#/')#">
<cfset ImagePath =
"Images/Users/#QryGetLogin.BligID#/Gallerys/#QryGetGallerys2.GalleryID#/">
<TABLE cellspacing=10 cellpadding=0 border=0>
        
        <TR>
                <cfoutput query="QryGetGallerys2" startrow="1" maxrows="5"> 
                        <TD align="center">
                        <a
href=JavaScript:OpenPic('VPic.cfm?PhotoID=#PhotoID#');>
                        <cfx_imagecr cachedir="#GetImagePath#" height=100
source="#GetImagePath##Photo#"> 
                        <img
src=http://#QryGetLogin.BlogURL#/#ImagePath##image.link#> 
                        </a></TD>
        </cfoutput>
        </TR>
        
        <TR>
                <cfoutput query="QryGetGallerys2" startrow="6" maxrows="5">
                        <TD align="center"><A
href="VPic.cfm?PhotoID=#PhotoID#" target="_Blank">
                        <cfx_imagecr cachedir="#GetImagePath#" height=100
source="#GetImagePath##Photo#"> 
                        <img
src=http://#QryGetLogin.BlogURL#/#ImagePath##image.link#>  
                        </a></TD>
        </cfoutput>
        </TR>



and so on



Rick

-----Original Message-----
From: Sangeeta Karmokar [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 05, 2003 2:06 AM
To: CF-Talk
Subject: Get the size of an image

Hi Charlie
I have created an database called Images and stored all links to images like
Images/logo.gif.

In CFM pages I have created a query to retrieve the images on cfm pages, but
I get only the name of images like Images/logo.gif but not actual images.
I am not sure if I am doing in the right way. As I said I never created any
dynamic images this is my first attempt.

Thanks
Sangeeta 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to