I'm using Matt Gifford's trick of returning the cropped image via an ajax request: http://www.mattgifford.co.uk/image-cropping-with-coldfusion-jquery/
So, yes, I suppose I could save it at that point, but it would remove the functionality of being able to revert to the original which is rather handy. There must be a way of getting at the servlet images though? T On 7 February 2011 11:55, Dave Watts <dwa...@figleaf.com> wrote: > > > I'm having problems getting an image which I've used CFIMAGE to crop on > CF8. > > > > I can crop the image, return it to the browser, but trying to 'get' at it > on > > the subsequent page request is driving me mad. > > > > I can output the image, i.e <img src=" > > http://localhost:81/CFFileServlet/_cf_image/_cfimg588898389753871789.jpg" > /> > > for the usual five minutes the temp file exists for, but if I try to do: > > > > <cfimage > > action="write" > > > source="#expandpath('/CFFileServlet/_cf_image/_cfimg588898389753871789.jpg')#" > > destination="#expandPath('/images/portraits/#profile.image#_crop.jpg')#" > > overwrite = "yes" /> > > > > i.e, I want to copy/move the file from the temp location to a more > permanent > > location, > > > > I'd get > > File > D:\www\blah\html\CFFileServlet\_cf_image\_cfimg5926235398043866604.jpg > > does not exist. > > > > When it really does - I can pull it up in a browser and look at it. > > > > This is presumably due to /CFFileServlet/ not being a physical directory? > > I've tried using cfimage to create another image object from the same > > location, and also tried to use cfhttp to get the image, but to no > avail.. > > > > How does everyone else do it? > > Can't you just either (a) save it to a variable in memory on your > first operation, or (b) save it to a specific destination on your > first operation? You can then serve it in the browser as needed. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > GSA Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, online, or > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341925 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm