using imageutil.cfc instead of cfimage
Posted on 2009-05-07
Hi exprets, i am using cfimage but it has a bug so my host have some issues in it. although i came accross the imageurtils code by bennadel. so i thought i should change my code and add some effctes like shadowing while i resize the imaage. but it is showing error while resizing.
Working with imageutils.cfc.
before i used this tag, i was using cfimage tag
to resize the image and store in the same location by overwriting:
> here i was
<cfset inpoint = "#cffile.ServerFile#">
using imageutils.cfc, i modified it liked this:
<cfset imageutils = createObject("component", "#request.cfcPath#.imageUtils")>
my request.cfcPath eq to cfc folder
<cfset inpoint =
<cfset pic = imageread("pictures/#inpoint#")>
<cfset imageResize(newpoint,form.t2,form.t1) />
<cfset latest = "#newpoint#">
but it does not
the image to same location rather it give this error:
GetReadableImageFormats() and GetWriteableImageFormats() to see which image
formats are supported. The Image@19a60e1 image format is not supported on this
I am trying to write the image to the same location where i
had it before
I want to use IMAGEUTILS.CFC because it has very nice features
like drop shadow and i really want to play with it.