Good morning, all. (at least it's morning here on the east coast of the US.)
I'm still figuring out best practices for image management based on the new image functions and tags available in CF 8. I'd like some comment on what I'm considering, if anyone's willing. So far, on a site that requires, say, a large image and a thumbnail, I've decided to create the following folder structure to hold the original uploaded image, the generated large image, and a thumbnail: - originals - photos_w400 (This would be the large image folder, 400 px-wide images) - photos_w100 (This would be the small image folder, 100 px-wide images) The naming of photos for these folders would follow this convention: - photo_01_original (Original name, plus "_original" appended) - photo_01_w400 (Original name, plus "_w400" appended, image created 400 px wide) - photo_01_w100 (Original name, plus "_w100" appended, image created 100 px wide) The next consideration is for image deletion. I figure that when a photo is deleted by a user (at this point the assumption will be made that all versions of the photo should be deleted, as well), the action will probably be performed when a user is on an update page with a thumbnail showing (100 px-wide photo). To delete all versions of a photo, I will run a find function to identify the original name of the photo, in this case "photo_01", and then run delete queries on all folders containing relevant photos that have "photo_01" in their name. This will eliminate "orphaned" images in the folders. That should be easy to do, but I'm wondering if it's overkill. I could simply place all versions of all images in the same folder and run one delete operation on all images in that single folder that contain the name of the original image. I really can't think of a good reason to place the various images sizes into separate folders, except it provides organization for me. I don't think it would matter to an app's function to have the images all in one folder.it would probably be a little faster with one folder. Sorry to be so long with this, but changing my "best practices" that I've used with CF 4.5 for almost 10 years requires some significant adjustment, not only to code, but how I think about handling images. Thoughts anyone? Thanks, Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292761 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

