House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search cf-talk

July 04, 2009

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Home /  Groups /  ColdFusion Talk (CF-Talk)

Image manipulation with ColdFusion MX and JAI

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
As promised, here is the article.
Matt Liotta
07/24/02 01:17 A
Wow. Aticle not found... Exciting article :-)
Costas Piliotis
07/24/02 05:25 P
> > As promised, here is the article.
Dave Watts
07/24/02 05:30 P
Correct
Matt Liotta
07/24/02 06:54 P
See the following additions.
Matt Liotta
07/24/02 07:21 P
Paul...
Chris Kief
07/24/02 08:03 P
Just checked the URL and received this:
Chris Kief
07/24/02 09:09 P
> Did you happen to get this all working?
Paul Hastings
07/24/02 09:10 P
> Uh, Matt's URL worked for me.
Paul Hastings
07/24/02 05:35 P
Wow.
ksuh
07/24/02 06:05 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 01:17 AM

As promised, here is the article. http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/339 07/index.html Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Costas Piliotis
07/24/2002 05:25 PM

Wow.  Aticle not found...  Exciting article :-) Got any other 404 templates to send us a link to :-) The link seems to be this now: http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/33907/i ndex.html As promised, here is the article. http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/339 07/index.html Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ben Johnson
07/24/2002 05:33 PM

> Wow.  Aticle not found...  Exciting article :-) > Got any other 404 templates to send us a link to :-) Costas,   If you clicked on the URL from Outlook, it won't grab the whole thing cuz it goes over one line.  Try copy and pasting.  It worked for me. Ben Johnson

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 05:49 PM

You should really think about a new profession if you are CF developer and don't understand that long lines wrap with many email clients. Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > Wow.  Aticle not found...  Exciting article :-) > Got any other 404 templates to send us a link to :-) > > The link seems to be this now: > http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/339 07 > /i > ndex.html > > As promised, here is the article. > > http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/339 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
07/24/2002 05:30 PM

----- Excess quoted text cut - see Original Post for more ----- Uh, Matt's URL worked for me. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chris Kief
07/24/2002 05:43 PM

I'm trying to work through Matt's tutorial but I'm running into the following error when trying to compile: ImageUtils.java:2: 'class' or 'interface' expected Public void load(String file) throws IO Exception I'm guessing this has something to do with the way the JAI is installed/configured. I tried messing with the CLASSPATH settings in the system's environment variables with no luck. I'm a complete newbie to Java so any help is greatly appreciated...chris ----- Excess quoted text cut - see Original Post for more ----- Uh, Matt's URL worked for me. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 05:51 PM

Did you download the JAI and install it on your system? Did you put the JAI jars into CF's classpath? Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com ----- Excess quoted text cut - see Original Post for more ----- the > system's environment variables with no luck. > > I'm a complete newbie to Java so any help is greatly appreciated...chris ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chris Kief
07/24/2002 06:06 PM

Downloaded/installed the J2SE SDK, then downloaded/installed the JAI (JDK version). Didn't put the JAI jars into CF's classpath (they were installed here: C:\jdk1.3.1_04\jre\lib\ext\). Thanks...chris Did you download the JAI and install it on your system? Did you put the JAI jars into CF's classpath? Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com ----- Excess quoted text cut - see Original Post for more ----- the > system's environment variables with no luck. > > I'm a complete newbie to Java so any help is greatly appreciated...chris ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 06:12 PM

You need to put the JAI jars into CF's classpath or CF's JVM won't be able to make use of the JAI classes. Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com ----- Excess quoted text cut - see Original Post for more ----- the ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chris Kief
07/24/2002 06:33 PM

Forgive the ignorance - but how is this done?? I'm a bit confused here though...aren't you referring to CF's JVM making use of the JAI classes at runtime? I'm only trying to compile the .java file at this point with the javac command (which I believe doesn't use the JVM that CF uses??). I'm probably just going about this all wrong as I don't really know what is doing what. Thanks again...chris You need to put the JAI jars into CF's classpath or CF's JVM won't be able to make use of the JAI classes. Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com ----- Excess quoted text cut - see Original Post for more ----- the ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 06:40 PM

Oh! You need to create a Java class file that contains the code referenced in the article. For example... import java.io.*; import java.util.*; import java.awt.image.renderable.*; import javax.media.jai.*; import com.sun.media.jai.codec.*; public class ImageUtils { } Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > Forgive the ignorance - but how is this done?? > > I'm a bit confused here though...aren't you referring to CF's JVM making > use of the JAI classes at runtime? I'm only trying to compile the .java > file at this point with the javac command (which I believe doesn't use > the JVM that CF uses??). > > I'm probably just going about this all wrong as I don't really know what ----- Excess quoted text cut - see Original Post for more ----- were ----- Excess quoted text cut - see Original Post for more ----- the ----- Excess quoted text cut - see Original Post for more ----- in ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chris Kief
07/24/2002 06:51 PM

Ok...this is starting to make more sense. So the methods you listed in the article should go within the ImageUtils class definition: public class ImageUtils {   article methods here??? } thanks again...chris Oh! You need to create a Java class file that contains the code referenced in the article. For example... import java.io.*; import java.util.*; import java.awt.image.renderable.*; import javax.media.jai.*; import com.sun.media.jai.codec.*; public class ImageUtils { } Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > Forgive the ignorance - but how is this done?? > > I'm a bit confused here though...aren't you referring to CF's JVM making > use of the JAI classes at runtime? I'm only trying to compile the java > file at this point with the javac command (which I believe doesn't use > the JVM that CF uses??). > > I'm probably just going about this all wrong as I don't really know what ----- Excess quoted text cut - see Original Post for more ----- were ----- Excess quoted text cut - see Original Post for more ----- the ----- Excess quoted text cut - see Original Post for more ----- in ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chris Kief
07/24/2002 07:01 PM

Alright...so now I've changed my ImageUtils.java file (code is below) and I'm getting a bunch of "cannot resolve symbol" errors when trying to compile it. What am I missing now?? Thanks again...chris --------------------------------------------------------- // Java Document import java.io.*; import java.util.*; import java.awt.image.renderable.*; import javax.media.jai.*; import com.sun.media.jai.codec.*; public class ImageUtils {   public void load(String file) throws IOException   {     FileSeekableStream fss = new FileSeekableStream(file);     image = JAI.create("stream", fss);     height = image.getHeight();     width = image.getWidth();   }      public void writeResult(String file, String type) throws IOException   {     FileOutputStream os = new FileOutputStream(file);     JAI.create("encode", result, os, type, null);   }      public void thumbnail(float edgeLength)   {     boolean tall = (height > width);     float modifier = edgeLength / (float) (tall ? height : width);     ParameterBlock params = new ParameterBlock();     params.addSource(image);     params.add(modifier);//x scale factor     params.add(modifier);//y scale factor     params.add(0.0F);//x translate     params.add(0.0F);//y translate     params.add(new InterpolationNearest());//interpolation method     result = JAI.create("scale", params);   }      public void crop(float edge)   {     ParameterBlock params = new ParameterBlock();     params.addSource(image);     params.add(edge);//x origin     params.add(edge);//y origin     params.add((float) width - edge);//width     params.add((float) height - edge);//height     result = JAI.create("crop", params);   }      public void border(int edge, double edgeColor)   {     ParameterBlock params = new ParameterBlock();     params.addSource(image);     params.add(edge);//left pad     params.add(edge);//right pad     params.add(edge);//top pad     params.add(edge);//bottom pad     double fill[] = {edgeColor};     params.add(new BorderExtenderConstant(fill));//type     params.add(edgeColor);//fill color     result = JAI.create("border", params);   } } --------------------------------------------------------- Correct Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com ----- Excess quoted text cut - see Original Post for more ----- use ----- Excess quoted text cut - see Original Post for more ----- be ----- Excess quoted text cut - see Original Post for more ----- JAI ----- Excess quoted text cut - see Original Post for more ----- put ----- Excess quoted text cut - see Original Post for more ----- settings ----- Excess quoted text cut - see Original Post for more ----- http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_ ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Paul Hastings
07/24/2002 06:57 PM

>Oh! You need to create a Java class file that contains the code and the classpath for javac? just the install dir or some .JARs ? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/7/2545

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 07:01 PM

Well yes, the JAI jars do need to be in your classpath, but I thought the installer took care of that for you. Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Paul Hastings
07/24/2002 07:21 PM

> Well yes, the JAI jars do need to be in your classpath, but I thought > the installer took care of that for you. could be, but the compilier's thrown 18 "cannot resolve symbol errors". what bits do you d/l & install? jdk & classpath? btw this thing can't do geoTIFF's, how barbaric ;-) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/7/2545

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 07:30 PM

You need to have a JDK installed and then download the JAI installer. The two jars you need in your classpath are jai_codec.jar and jai_core.jar. Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > > Well yes, the JAI jars do need to be in your classpath, but I thought > > the installer took care of that for you. > > could be, but the compilier's thrown 18 "cannot resolve symbol errors". ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chris Kief
07/24/2002 07:46 PM

Thanks Matt, that compiled without an issue. If you could just walk me through the next step of how to include the two .jar files and my .class file in CF's classpath... Thanks again for all the help! Chris You need to have a JDK installed and then download the JAI installer. The two jars you need in your classpath are jai_codec.jar and jai_core.jar. Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > > Well yes, the JAI jars do need to be in your classpath, but I thought > > the installer took care of that for you. > > could be, but the compilier's thrown 18 "cannot resolve symbol errors". ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 08:05 PM

Open up the CF Administrator and chose the JVM Settings option. There is a field there for the classpath that you simply put the appropriate paths to your jars. Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > Thanks Matt, that compiled without an issue. If you could just walk me > through the next step of how to include the two .jar files and my .class ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Paul Hastings
07/24/2002 07:45 PM

naw it was those missing var declarations....might want to include all this in your article(s) for us know-no-better java novices....thanks. > You need to have a JDK installed and then download the JAI installer. > The two jars you need in your classpath are jai_codec.jar and > jai_core.jar. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/7/2545

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chris Kief
07/24/2002 08:03 PM

Paul... Did you happen to get this all working? Chris naw it was those missing var declarations....might want to include all this in your article(s) for us know-no-better java novices....thanks. > You need to have a JDK installed and then download the JAI installer. > The two jars you need in your classpath are jai_codec.jar and > jai_core.jar. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/7/2545

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 08:22 PM

I just updated the article as suggested. Apparently, the article has to be re-approved now, so it is no longer available on their site. Hopefully, that will be real soon. If I would have known that editing it would take the article down I wouldn't have done it. Hindsight! Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > naw it was those missing var declarations....might want to include all > this > in your article(s) for us know-no-better java novices....thanks. > > > You need to have a JDK installed and then download the JAI installer. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chris Kief
07/24/2002 08:58 PM

That's a definite pain. But thanks for updating the article, us novices out there will definitely appreciate any extra guidance. Thanks again for the help! Chris I just updated the article as suggested. Apparently, the article has to be re-approved now, so it is no longer available on their site. Hopefully, that will be real soon. If I would have known that editing it would take the article down I wouldn't have done it. Hindsight! Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > naw it was those missing var declarations....might want to include all > this > in your article(s) for us know-no-better java novices....thanks. > > > You need to have a JDK installed and then download the JAI installer. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 09:04 PM

The URL I posted earlier still works (assuming it doesn't wrap) and has the updated content. Apparently the article was only removed from the front page pending approval. Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > That's a definite pain. But thanks for updating the article, us novices > out there will definitely appreciate any extra guidance. > > Thanks again for the help! > Chris > > > I just updated the article as suggested. Apparently, the article has to > be re-approved now, so it is no longer available on their site. > Hopefully, that will be real soon. If I would have known that editing it ----- Excess quoted text cut - see Original Post for more ----- all ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chris Kief
07/24/2002 09:09 PM

Just checked the URL and received this: Sorry, the article you are looking for has been edited by its author and is currently unavailable pending review and potential re-approval. Please check back soon. The URL I posted earlier still works (assuming it doesn't wrap) and has the updated content. Apparently the article was only removed from the front page pending approval. Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > That's a definite pain. But thanks for updating the article, us novices > out there will definitely appreciate any extra guidance. > > Thanks again for the help! > Chris > > > I just updated the article as suggested. Apparently, the article has to > be re-approved now, so it is no longer available on their site. > Hopefully, that will be real soon. If I would have known that editing it ----- Excess quoted text cut - see Original Post for more ----- all ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chris Kief
07/24/2002 09:15 PM

One final question...do you have any code examples for invoking the cfc? Since load, writeResult and thumbnail are distinct methods, it appeared that you had to cfinvoke each one individually. This obviously didn't work. So I rewrote the component to this: <cffunction access="public" name="testMine">   <cfargument name="initfilename" type="string" required="true">   <cfargument name="edgeLength" type="numeric" required="true">   <cfargument name="endfilename" type="string" required="true">   <cfargument name="type" type="string" required="true">   <!--- load the image --->   <cfscript>   iu.load(arguments.initfilename);   loaded = true;   </cfscript>   <!--- resize the image --->   <cfif loaded>   <cfscript>     iu.thumbnail(arguments.edgeLength);     result = true;   </cfscript>   </cfif>   <!--- write out the result --->   <cfif result>   <cfscript>     if(result)     iu.writeResult(arguments.endfilename, arguments.type);   </cfscript>   </cfif> </cffunction> And then invoked it like so: <cfinvoke component="CFM_Tests.ImageUtils" method="testMine">   <cfinvokeargument name="initfilename" value="C:\Inetpub\wwwroot\CFM_Tests\images\mono.jpg"/>   <cfinvokeargument name="edgeLength" value="250"/>   <cfinvokeargument name="endfilename" value="C:\Inetpub\wwwroot\CFM_Tests\images\monoTH.jpg"/>   <cfinvokeargument name="type" value="JPEG"/> </cfinvoke> This worked fine but there must be a better way to do this - similar to the way you wrote the component?? Chris The URL I posted earlier still works (assuming it doesn't wrap) and has the updated content. Apparently the article was only removed from the front page pending approval. Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > That's a definite pain. But thanks for updating the article, us novices > out there will definitely appreciate any extra guidance. > > Thanks again for the help! > Chris > > > I just updated the article as suggested. Apparently, the article has to > be re-approved now, so it is no longer available on their site. > Hopefully, that will be real soon. If I would have known that editing it ----- Excess quoted text cut - see Original Post for more ----- all ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 09:38 PM

I think the issue you are running into is that you must do at least three steps, load, some manipulation, and write. If you call each one of those methods using separate <cfinvoke> calls then it won't work because you are using three different instances of the same CFC. Personally, I would do it all in <cfscript> like as follows. <cfscript>   imageUtils = CreateObject("component", "yourCFChere");   imageUtils.load("filepath");   imageUtils.thumbnail(250);   imageUtils.writeResult("resultpath"); </cfscript> Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > One final question...do you have any code examples for invoking the cfc? > Since load, writeResult and thumbnail are distinct methods, it appeared ----- Excess quoted text cut - see Original Post for more ----- to > the way you wrote the component?? > > Chris > > > > The URL I posted earlier still works (assuming it doesn't wrap) and has ----- Excess quoted text cut - see Original Post for more ----- editing ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chris Kief
07/24/2002 09:43 PM

That was exactly the solution I was looking for. All works as it should now. Kudos on a good tutorial and thanks again for the help! Chris I think the issue you are running into is that you must do at least three steps, load, some manipulation, and write. If you call each one of those methods using separate <cfinvoke> calls then it won't work because you are using three different instances of the same CFC. Personally, I would do it all in <cfscript> like as follows. <cfscript>   imageUtils = CreateObject("component", "yourCFChere");   imageUtils.load("filepath");   imageUtils.thumbnail(250);   imageUtils.writeResult("resultpath"); </cfscript> Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > One final question...do you have any code examples for invoking the cfc? > Since load, writeResult and thumbnail are distinct methods, it appeared ----- Excess quoted text cut - see Original Post for more ----- to > the way you wrote the component?? > > Chris > > > > The URL I posted earlier still works (assuming it doesn't wrap) and has ----- Excess quoted text cut - see Original Post for more ----- editing ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Paul Hastings
07/24/2002 09:10 PM

> Did you happen to get this all working? compilied as a class, etc. but need to restart my cfmx services & i'm at home for two day religious holiday. if i can stay awake i guess i'll get to it this afternoon (bangkok time). --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/7/2545

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Paul Hastings
07/24/2002 05:35 PM

> Uh, Matt's URL worked for me. it wrapped? and yes worked for me as well. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/7/2545

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
ksuh
07/24/2002 06:05 PM

Wow. Reminder to self:  Make a rule that any emails from mliotta@r337.com get permanently deleted. Geez, there's a lot of *ahem* novice questions on this list.  Maybe you should tell each of those people to "really think about a new profession"? ----- Excess quoted text cut - see Original Post for more ----- http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/339 ----- Excess quoted text cut - see Original Post for more ----- http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/339 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/24/2002 06:15 PM

As good as you are at flaming I would have thought you of all people would be able to recognize a flame when you see one. Apparently not. Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com > Wow. > > Reminder to self:  Make a rule that any emails from mliotta@r337.com > get permanently deleted. > > Geez, there's a lot of *ahem* novice questions on this list.  Maybe you > should tell each of those people to "really think about a new > profession"? > > > You should really think about a new profession if you are CF developer ----- Excess quoted text cut - see Original Post for more ----- http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/339 ----- Excess quoted text cut - see Original Post for more ----- http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/339 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
ksuh
07/24/2002 06:18 PM

That's not a flame.  A flame would something like: MATT, YOU'RE A TOTAL LOSER.  I BET YOUR DINKY SIZE IS SMALLER THAN YOUR SHOE SIZE. How you give poor Costas a break?  Ok, so he doesn't know that email clients like to wrap.  Really, in the course of your life, does it affect you? ----- Excess quoted text cut - see Original Post for more ----- http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/339 ----- Excess quoted text cut - see Original Post for more ----- http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/339 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ben Johnson
07/24/2002 06:24 PM

----- Excess quoted text cut - see Original Post for more -----   Ok, just simma' down now.  Maybe Costas' e-mail was a flame... maybe not. Either way, it takes two to start a flame war.  Lets just kiss and make up and call it over. Ben Johnson

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
07/24/2002 06:23 PM

> That's not a flame.  A flame would something like: > > ... I BET YOUR DINKY SIZE IS SMALLER THAN YOUR SHOE SIZE. I would guess that this would be an accurate statement for most men, actually, so it wouldn't be much of a flame unless you were "hanging out" with a select group of porn stars. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Buddy
07/24/2002 06:27 PM

Why is it I can't be in on a mailing list for more then 3 hours without the talk turning to porn? -Buddy buddy@adult.com PS I haven't gotten any responses about good CF hosts. I would really appreciate some feedback. > That's not a flame.  A flame would something like: > > ... I BET YOUR DINKY SIZE IS SMALLER THAN YOUR SHOE SIZE. I would guess that this would be an accurate statement for most men, actually, so it wouldn't be much of a flame unless you were "hanging out" with a select group of porn stars. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ben Johnson
07/24/2002 06:31 PM

> Why is it I can't be in on a mailing list for more then 3 hours > without the talk turning to porn? > > -Buddy > buddy@adult.com Considering the @adult.com domain, you may just be in the wrong mailing lists.  <g>  j/k Ben Johnson

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mike Byers
07/25/2002 10:23 AM

You are quite the smart a## aren't you.  Why don't you look at the link Matt supplied and the one you supplied.  They are the same!  Look before you leap!  If you inspect the url you pasted into your browser, you will notice that you did not grab the line break and you will get only a partial link when you paste.  You have to get both pieces to get the complete url.  By the way when I copied and pasted your link my reaction was similar to yours. "Wow.  Aticle not found...  Exciting article :-)" Think you owe someone an apology? Mike Wow.  Aticle not found...  Exciting article :-) Got any other 404 templates to send us a link to :-) The link seems to be this now: http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/33907/i ndex.html As promised, here is the article. http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/339 07/index.html Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: 4155778070@messaging.sprintpcs.com


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists