the easy answer would be to do the upload to a folder and then run the imagecfc
to get that image and resize it and put the new one into a different folder.
You need to show some code but it sounds like you are uploading the image and
have the cffile to overwrite but not the tag which of course wont work cause
you are only uploading the image once so the overwrite wont kick in.
try this but BE SURE to chance your folder name, dont be using "your upload
folder path" as your path lol, i know Will would use that....
<cffile Action="upload"
Filefield="photo"
DESTINATION="your upload folder path"
Nameconflict="makeunique"
accept="image/*">
<cfset photo1 = #file.serverfile#>
<cfset imageCFC = createObject("component","#request.cfcmapping#.image")>
<cfset image640 = imageCFC.scaleX("", "your upload folder path#photo1#", "your
upload folder path#photo1#", 640)>
> I have seen a few other posts regarding imagecfc here recently so I
> hope this is not to off topic, the problem I am having with imagecfc
> is whenever I resize an image it doesn't change the filesize, this
> only occurs when I am overwriting the existing image. eg. I uploaded a
> 1mb image, which maybe 1200px wide, my application will see that it is
> greater than 500px wide and resize the image down to a suitable size
> 500px, however the image remains at 1mb. This occurs on a testing
> environment and production server, both linux and windows and also
> with Blue Dragon.
>
> Any help would be appreciated
>
Mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256223
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4