We're doing this right now with flash frontended image galleries for our
clients. They login to an CFML admin area, make photo categories, upload
images {1} at a time, Using Ricks imageCFC this resizes them to all required
sizes in one swoop, then they assign categories to a gallery page. Click
commit to site and this creates a static html page with the flash gallery,
xml for the names, locations etc. and cfftp those files over to their
website.
All you need is imagecfc and a database to store the rest.
Half the battle is the code below as an example of uploading a new image.
I'd have to do a bunch of cleaning to get that working off-site but if you
still have troubles finding something that works for you, hit me up at
cfunited.
<cffile action="UPLOAD" filefield="IMAGE" destination="#ClientTMPFolder#"
nameconflict="MAKEUNIQUE" accept="image/gif, image/jpeg, image/pjpeg,
image/png">
<!---NOW RESIZE THE IMAGE AND MOVE IT TO THE RIGHT LOCATION --->
<cfset imagecfc = createObject("component","imagecfc")>
<!---ARE WERE GOING TO INITIALLY SWRINK SMALL IMAGES BY Y or X--->
<cfif val (TRIM(swfStuff.SScale_X_Y)) IS 'X'>
<cfset TheImage = imageCFC.scaleX("", "#ClientTMPFolder#\#SERVERFILE#",
"#ClientSmallFolder#\#latest.maxID#.jpg", #swfStuff.SWF_Small_x#)>
<cfelse>
<cfset TheImage = imageCFC.scaleY("", "#ClientTMPFolder#\#SERVERFILE#",
"#ClientSmallFolder#\#latest.maxID#.jpg", #swfStuff.SWF_Small_y#)>
</cfif>
<!---ARE WERE GOING TO INITIALLY SWRINK LARGE IMAGES BY Y or X--->
<cfif val (TRIM(swfStuff.LScale_X_Y)) IS 'X'>
<cfset TheImage = imageCFC.scaleX("", "#ClientTMPFolder#\#SERVERFILE#",
"#ClientLargeFolder#\#latest.maxID#.jpg", #swfStuff.SWF_Large_x#)>
<cfelse>
<cfset TheImage = imageCFC.scaleY("", "#ClientTMPFolder#\#SERVERFILE#",
"#ClientLargeFolder#\#latest.maxID#.jpg", #swfStuff.SWF_Large_y#)>
</cfif>
<cfset TheImage = imageCFC.scaleX("", "#ClientTMPFolder#\#SERVERFILE#",
"#ClientDownload1Folder#\#latest.maxID#.jpg", 800)>
<cfset TheImage = imageCFC.scaleX("", "#ClientTMPFolder#\#SERVERFILE#",
"#ClientDownload2Folder#\#latest.maxID#.jpg", 1024)>
<cfset TheImage = imageCFC.scaleX("", "#ClientTMPFolder#\#SERVERFILE#",
"#ClientDownload3Folder#\#latest.maxID#.jpg", 1280)>
<!--- NOW SAVING IMAGE TO THE DATABASE --->
--
Casey Dougall
Web Applications Developer
Ph: 518 743-9424 Fax: 743-0337
[EMAIL PROTECTED]
Mannix Marketing Inc. 10 East Washington St. Suite 1, Glens Falls, New York
Marketing to New York State Destinations?
We offer quality Travel Industry Directories, Including www.Albany.com,
www.LakeGeorge.com & www.Saratoga.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243533
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54