I have an admin interface where the user uploads the image and the code drops it into a specific directory (all using cffile). The image path and filename are written to the database at that time.

When using the imageCr3 tag you want to call the image path and filename in the database. The imageCr3 tag will automatically store a cached version of the image in a directory you specify (I use d:\cacheimages and add it as a virtual directory to my websites that use the tag) and will only pull, resize, and cache the orginal if there is no cached image in the "cachimages" directory.

As far as updates and deletes, all you will want to do is update and delete the database record and use the cffile delete action on the original image to delete it. As far as I know there is no delete function for the cached image. It can be done programatically, but I am going to suggest to Efflare that they ought to automatically delete cached files not in use after x days. I don't know how they would do that, but perhaps there is a way.

>
> "It can truly be said that nothing happens until there is vision. But
> it is equally true that a vision with no underlying sense of purpose,
> no calling, is just a good idea - all "sound and fury, signifying
> nothing."  The Fifth Discipline - Peter Senge
>
>
>
> ---------- Original Message ----------------------------------
> From: Josen Ruiseco <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date:  Mon, 26 Jan 2004 19:19:37 -0400
>
> >Dwayne,
> >
> >I use the cfx_imageCr tag extensively. It is a great little tag that
> does far and away more than just resize an image. Nonetheless, all I
> store in the database is the directory path and image name. ImageCr
> will do all the rest for you (ie. get the size, attributes, etc.) You
> will want to use version 3 as version 2.x is limited in functionality,
> and if I recall correctly, won't even get the image dimensions.
> >
> >My site http://www.gomotorbids.com/ uses the tag exclusively. Every
> image except for the header images and category buttons are huge and
> then get resized accordingly. I am about to purchase the ImageFlare
> tag from them so that I can watermark my images dynamically and
> actually embed text onto the images.
> >
> >Hope this helps. Feel free to email me offlist if you need a hand.
> >
> >Regards,
> >
> >Josen
> >[EMAIL PROTECTED]
> >
> >
> >> I working on an image gallery managment system that will allow
> users
> >> to upload and manage a collection of image files. I'm storing
> >> information such as directory location and description attributes
> of
> >> the image in a database. I do not want the users to be concerned
> with
> >> the size of the image becuase we plan to use "imagecr" to resize
> the
> >> image dynamically.  Does anyone here know of a solution that might
>
> >> help?
> >>
> >> Dwayne Cole, MS in MIS, MBA
> >> Certified Advanced ColdFusion Developer
> >> 850-591-0212
> >
> >>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to