Re: ImageCFC 2.18 released
Great work Rick! Rick Root wrote: ImageCFC 2.18 is now available. I tested it with Coldfusion MX 7 on Linux, Coldfusion 8 beta on Windows and Linux, and Bluedragon 7 on Linux. It works much better than 2.17 did. A future version will probably cause image.cfc to act as an intermediary to cfimage in Coldfusion 8 to take advantage of the improved performance and image quality available by using cfimage... but for now.. it works :) It's in subversion - http://svn.riaforge.org/imagecfc , and can also be downloaded as a zip file from riaforge as well: http://imagecfc.riaforge.org/index.cfm?event=action.download Rick ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283434 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: ImageCFC update
Question Rick... At least from within Photoshop, there's no such thing as a greyscale JPG. There's only JPGs that don't have color. I know it seems like the same thing, but it's really not. A JPG shouldn't care what colors are contained within it. How do you mean it doesn't know how to handle them? Is it throwing an error? Returning unexpected results? -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Monday, July 02, 2007 5:15 PM To: CF-Talk Subject: Re: ImageCFC update ImageCFC (all versions) apparently doesn't know how to handle grayscale jpeg images. I'm not stunned by this, but I am trying to figure out how I can go about making it work. Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282787 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ImageCFC update
On 7/3/07, Andy Matthews [EMAIL PROTECTED] wrote: At least from within Photoshop, there's no such thing as a greyscale JPG. There's only JPGs that don't have color. I know it seems like the same thing, but it's really not. A JPG shouldn't care what colors are contained within it. How do you mean it doesn't know how to handle them? Is it throwing an error? Returning unexpected results? Here's the message I've TRIED sending to the java2d-interest mailing list.. for some reason it's not going through --- List, I'm trying to use java to do image manipulation... I've got it working pretty good for most cases, but having a problem with a grayscale image: http://www.opensourcecf.com/imagecfc/src/imagecfc-2.18/grayscale.jpg When I perform pretty much any manipulation operation (resize, blur, rotate, etc), I get a pink and blue hued image that looks like this: http://www.opensourcecf.com/imagecfc/src/imagecfc-2.18/testOutput/test4.jpg I don't really understand WHY. Can anyone on the list offer some suggestions? If you look at this page, there is a dump of all the information I can discern about the original image: http://www.opensourcecf.com/imagecfc/src/imagecfc-2.18/test-cases.cfm Thanks. ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282789 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: ImageCFC update
Just an FYI... I believe that in Photoshop CS3 there is now a true grayscale. -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 9:16 AM To: CF-Talk Subject: RE: ImageCFC update Question Rick... At least from within Photoshop, there's no such thing as a greyscale JPG. There's only JPGs that don't have color. I know it seems like the same thing, but it's really not. A JPG shouldn't care what colors are contained within it. How do you mean it doesn't know how to handle them? Is it throwing an error? Returning unexpected results? -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Monday, July 02, 2007 5:15 PM To: CF-Talk Subject: Re: ImageCFC update ImageCFC (all versions) apparently doesn't know how to handle grayscale jpeg images. I'm not stunned by this, but I am trying to figure out how I can go about making it work. Rick ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282791 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ImageCFC update
It's worth nothing that the image is RGB color when I open it in Photoshop. I saved three versions from photoshop and they ALL worked fine.. I saved baseline, baseline optimized, and progressive. so now I'm trying to figure out the difference between the original version and the photoshop saved versions. Rick ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282793 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: ImageCFC update
Rick... On my computer, the original and the thumb look identical. Same coloring and everything (just smaller). The original isn't actually greyscale anyway. It's got purples in it. That's a monochrome image, but not strictly greyscale. -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 8:22 AM To: CF-Talk Subject: Re: ImageCFC update On 7/3/07, Andy Matthews [EMAIL PROTECTED] wrote: At least from within Photoshop, there's no such thing as a greyscale JPG. There's only JPGs that don't have color. I know it seems like the same thing, but it's really not. A JPG shouldn't care what colors are contained within it. How do you mean it doesn't know how to handle them? Is it throwing an error? Returning unexpected results? Here's the message I've TRIED sending to the java2d-interest mailing list.. for some reason it's not going through --- List, I'm trying to use java to do image manipulation... I've got it working pretty good for most cases, but having a problem with a grayscale image: http://www.opensourcecf.com/imagecfc/src/imagecfc-2.18/grayscale.jpg When I perform pretty much any manipulation operation (resize, blur, rotate, etc), I get a pink and blue hued image that looks like this: http://www.opensourcecf.com/imagecfc/src/imagecfc-2.18/testOutput/test4.jpg I don't really understand WHY. Can anyone on the list offer some suggestions? If you look at this page, there is a dump of all the information I can discern about the original image: http://www.opensourcecf.com/imagecfc/src/imagecfc-2.18/test-cases.cfm Thanks. ~| Create Web Applications With ColdFusion MX7 Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282794 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC update
I actually was doing some testing so it's possible when you clicked on the image link for the thumbnail, I had just run the test with one of the photoshop saved versions. You'll see in a previous response that I noticed it's not actually grayscale. But the result is definately NOT right if you click on this: http://www.opensourcecf.com/imagecfc/src/imagecfc-2.18/test-cases.cfm It reminds me of what happens when you try to manipulate a GIF image. (imagecfc won't even let you do that anymore) I compared the exif data and the only thing I noticed about the original is that it was produced by Quicktime. Rick ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282795 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: ImageCFC update
Ah yes...I see that now. Looks like it might be reading the wrong color table maybe. -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 8:55 AM To: CF-Talk Subject: Re: ImageCFC update I actually was doing some testing so it's possible when you clicked on the image link for the thumbnail, I had just run the test with one of the photoshop saved versions. You'll see in a previous response that I noticed it's not actually grayscale. But the result is definately NOT right if you click on this: http://www.opensourcecf.com/imagecfc/src/imagecfc-2.18/test-cases.cfm It reminds me of what happens when you try to manipulate a GIF image. (imagecfc won't even let you do that anymore) I compared the exif data and the only thing I noticed about the original is that it was produced by Quicktime. Rick ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282797 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC update
I just updated the subversion again. It now works on CF8! Hooray! Ooh, glad to hear it! I'd been playing around with the cfimage tag anyway but glad to know it won't be necessarily right away to swap out code. I did a brief resizing test on BlueDragon 6.2 and didn't have any problems. --- Mary Jo ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282714 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC update
On 7/2/07, Mary Jo Sminkey [EMAIL PROTECTED] wrote: I just updated the subversion again. It now works on CF8! Hooray! Ooh, glad to hear it! I'd been playing around with the cfimage tag anyway but glad to know it won't be necessarily right away to swap out code. I did a brief resizing test on BlueDragon 6.2 and didn't have any problems. I'm having viviotech rebuild one of my VPS accounts and when they do I'm going to give it the full test on BD7. I just tested it on CFMX7 on Linux and it worked fine too. Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282720 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ImageCFC update
ImageCFC (all versions) apparently doesn't know how to handle grayscale jpeg images. I'm not stunned by this, but I am trying to figure out how I can go about making it work. Rick ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282746 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC update
I just updated the subversion again. It now works on CF8! Hooray! Rick ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282639 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC update
YES! I use it extensively and once i upgraded my laptop to CF8 I had to copy to another dev server running 7 to test that code. I wanted to be able to get everything working in CF8 without having to change to CFimage for the time being. You rock dude! J.J. On 7/1/07, Rick Root [EMAIL PROTECTED] wrote: I just updated the subversion again. It now works on CF8! Hooray! Rick ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282661 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC update
On 7/1/07, J.J. Merrick [EMAIL PROTECTED] wrote: I use it extensively and once i upgraded my laptop to CF8 I had to copy to another dev server running 7 to test that code. I wanted to be able to get everything working in CF8 without having to change to CFimage for the time being. You rock dude! Thanks =) Probably sometime in the next few weeks, there will be a NEW version that actually makes use of CFIMAGE tags instead of the java, when available. I figure I've got a bunch of apps that use image.cfc and i don't necessarily want to change the code in those apps ... should be quite easy to make image.cfc use cfimage on CF8 servers in order to get the better quality and presumably improved speed.. without any need to change the interface. I'm pretty happy about it. I actually got some help from some folks on the java2d-interest mailing list. They're the ones that suggested copying the source into a new bufferedimage object of an appropriate type, and *THEN* performing the manipulations. Rick ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282663 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: imageCFC getImageInfo ImageType question
On 2/25/07, Michael E. Carluen [EMAIL PROTECTED] wrote: I am currently using Rick's ImageCFC. Using the getImageInfo method, it returns a numeric equivalent to jpg (5) or gif(13). I noticed that the CFC uses the standard getType() method. Does anyone know where I can lookup the numeric equivalents of all other graphic file formats? You can find the list of constant values returned by the BufferedImage getType() method here: http://java.sun.com/j2se/1.4.2/docs/api/constant-values.html#java.awt.image.BufferedImage.TYPE_3BYTE_BGR Descriptions are here: http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html#field_summary Most all of this stuff is over my head =) I can say that the image type is *NOT* necessarily related to the image format (jpeg, gif)... type 13, for example, is indexed color. GIF images are not the only images that use this format - however all GIF images are indexed color. type 5 is most typical for JPG images (3 byte BGR), but some JPEG images - particularly those with embedded color profiles, end up being TYPE_CUSTOM (0) and imageCFC can't handle them. Rick ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270661 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: imageCFC getImageInfo ImageType question
BTW, not that houseoffusion isn't a fabulous place for questions like this, since many other people also use imagecfc... but I get immediate notification of anything posted to all of the forums at opensourcecf.com(home of imagecfc) http://www.opensourcecf.com/forums/forums.cfm From time to time I do miss questions like this on cf-talk. Rick On 2/26/07, Rick Root [EMAIL PROTECTED] wrote: On 2/25/07, Michael E. Carluen [EMAIL PROTECTED] wrote: I am currently using Rick's ImageCFC. Using the getImageInfo method, it returns a numeric equivalent to jpg (5) or gif(13). I noticed that the CFC uses the standard getType() method. Does anyone know where I can lookup the numeric equivalents of all other graphic file formats? You can find the list of constant values returned by the BufferedImage getType() method here: http://java.sun.com/j2se/1.4.2/docs/api/constant-values.html#java.awt.image.BufferedImage.TYPE_3BYTE_BGR Descriptions are here: http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html#field_summary Most all of this stuff is over my head =) I can say that the image type is *NOT* necessarily related to the image format (jpeg, gif)... type 13, for example, is indexed color. GIF images are not the only images that use this format - however all GIF images are indexed color. type 5 is most typical for JPG images (3 byte BGR), but some JPEG images - particularly those with embedded color profiles, end up being TYPE_CUSTOM (0) and imageCFC can't handle them. Rick -- I'm not certified, but I have been told that I'm certifiable... Visit http://www.opensourcecf.com today! ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270662 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: imageCFC getImageInfo ImageType question
Thank for both of your responses Rick. That explanation below was helpful (or at least it was nice to know that what I thought it was, was actually incorrect ;-) ). Again, thanks Rick. - Michael -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Monday, February 26, 2007 5:26 AM To: CF-Talk Subject: Re: imageCFC getImageInfo ImageType question On 2/25/07, Michael E. Carluen [EMAIL PROTECTED] wrote: I am currently using Rick's ImageCFC. Using the getImageInfo method, it returns a numeric equivalent to jpg (5) or gif(13). I noticed that the CFC uses the standard getType() method. Does anyone know where I can lookup the numeric equivalents of all other graphic file formats? You can find the list of constant values returned by the BufferedImage getType() method here: http://java.sun.com/j2se/1.4.2/docs/api/constant- values.html#java.awt.image.BufferedImage.TYPE_3BYTE_BGR Descriptions are here: http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html# field_summary Most all of this stuff is over my head =) I can say that the image type is *NOT* necessarily related to the image format (jpeg, gif)... type 13, for example, is indexed color. GIF images are not the only images that use this format - however all GIF images are indexed color. type 5 is most typical for JPG images (3 byte BGR), but some JPEG images - particularly those with embedded color profiles, end up being TYPE_CUSTOM (0) and imageCFC can't handle them. Rick ~| Create Web Applications With ColdFusion MX7 Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270681 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: ImageCFC 2.10 Now Available
Word to your mom Rick! I was hoping you'd get that in there. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 3:13 PM To: CF-Talk Subject: ImageCFC 2.10 Now Available http://www.opensourcecf.com/imagecfc/ version 2.10 adds image filtering capability to ImageCFC, including the following: o simple blur (very fast) o box blur (slow) o gaussian blur (slow) o sharpen o posterize Some examples of each of the filters. http://www.opensourcecf.com/imagecfc/examples.cfm Thanks to everyone who assisted via the list! Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264037 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC 2.10 Now Available
Andy Matthews wrote: Word to your mom Rick! I was hoping you'd get that in there. The gaussian and box blurs are nearly unusable because of the speed. Coldfusion just can't handle doing that much math. For example, in the gaussian blur to do an image of 400x300, you're dealing with 120,000 pixels. If your radius is 5, then you're grabbing the RGB values of the nearest 5 pixels and applying a normal distribution to compute the new RGB value of the center pixel. so that's 600,000 iterations. And then you have to do it again for the vertical pass. 1.2 million iterations ... I just did some performance testing and I've discovered that doing my RGB separation calcs in a UDF is a *BAD* idea. I just modified the gaussianFilter.cfc to *NOT* use the separateRGB() udf and cut the processing time for an image from 96 to 77 seconds. It's still ridiculously slow, but that's still a 20% performance improvement. I guess there's a little overheard hitting a UDF 1.2 million times. I'm going to update the box blur too... and maybe also develop an object oriented interface to imagecfc cfscript objImage = createObject(component,imageObject); objImage.init(C:\Inetpub\wwwroot\myimage.gif); objImage.resize(400,300); objImage.addText(fontDetails,Sample Text); objImage.save(compression=95); objImage.saveAs(filename=C:\Inetpub\wwwroot\myimage.gif,compression=95); cfscript I think it might simplify use... but I don't want to mess with the main CFC. Sure would be nice if Coldfusion allowed multiple methods with the same name and different argument types, like java does... ooImage.init(filename); // initialize from a file ooImage.init(400,300); // initialize a blank image ooImage.init(bufferedImage); //initialize with a bufferedImage object Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264040 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: ImageCFC 2.10 Now Available
Couldn't you use JAVA to do it instead of CF, I think ImageMagick uses the underlying Java Image manipulation methods, maybe you could take a look and see how they do it. Russ -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: 14 December 2006 15:19 To: CF-Talk Subject: Re: ImageCFC 2.10 Now Available Andy Matthews wrote: Word to your mom Rick! I was hoping you'd get that in there. The gaussian and box blurs are nearly unusable because of the speed. Coldfusion just can't handle doing that much math. For example, in the gaussian blur to do an image of 400x300, you're dealing with 120,000 pixels. If your radius is 5, then you're grabbing the RGB values of the nearest 5 pixels and applying a normal distribution to compute the new RGB value of the center pixel. so that's 600,000 iterations. And then you have to do it again for the vertical pass. 1.2 million iterations ... I just did some performance testing and I've discovered that doing my RGB separation calcs in a UDF is a *BAD* idea. I just modified the gaussianFilter.cfc to *NOT* use the separateRGB() udf and cut the processing time for an image from 96 to 77 seconds. It's still ridiculously slow, but that's still a 20% performance improvement. I guess there's a little overheard hitting a UDF 1.2 million times. I'm going to update the box blur too... and maybe also develop an object oriented interface to imagecfc cfscript objImage = createObject(component,imageObject); objImage.init(C:\Inetpub\wwwroot\myimage.gif); objImage.resize(400,300); objImage.addText(fontDetails,Sample Text); objImage.save(compression=95); objImage.saveAs(filename=C:\Inetpub\wwwroot\myimage.gif,compression=95); cfscript I think it might simplify use... but I don't want to mess with the main CFC. Sure would be nice if Coldfusion allowed multiple methods with the same name and different argument types, like java does... ooImage.init(filename); // initialize from a file ooImage.init(400,300); // initialize a blank image ooImage.init(bufferedImage); //initialize with a bufferedImage object Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264053 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC 2.10 Now Available
Snake wrote: Couldn't you use JAVA to do it instead of CF, I think ImageMagick uses the underlying Java Image manipulation methods, maybe you could take a look and see how they do it. ImageMagick doesn't use java at all, it uses ImageMagick, which is native operating system code (dll, exe, etc). I could build a java class to do the work but I'm trying to avoid complicating things by requiring the use of jar files and such (even though yes, I know about the URL loaders and stuff) Of course, the gaussian and box blurs are the only place I've had this problem. The Alagad Image Component, which is 100% native CFML, just like ImageCFC, has a blur() method but I don't know if it does a simple blur, gaussian blur, box blur, or what. Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264059 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ImageCFC 2.10 Now Available
Rick Root wrote: I'm going to update the box blur too... and maybe also develop an object oriented interface to imagecfc cfscript objImage = createObject(component,imageObject); objImage.init(C:\Inetpub\wwwroot\myimage.gif); objImage.resize(400,300); objImage.addText(fontDetails,Sample Text); objImage.save(compression=95); objImage.saveAs(filename=C:\Inetpub\wwwroot\myimage.gif,compression=95); cfscript I think it might simplify use... but I don't want to mess with the main CFC. This is done and part of release version 2.11, now available. The object oriented wrapper includes a revert() method allowing you to undo one level of changes. If you store the image object in a session variable, you can manipulate an image, and if you don't like it, revert back. I think my next goal will be to *FINALLY* integrate the new imageCFC into CFFM. Being able to revert changes would be a nice feature for those oops momemts. The oo wrapper isn't documented, but it's included in the download for 2.11 Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264061 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: ImageCFC 2.10 Now Available
You are indeed the man. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 11:43 AM To: CF-Talk Subject: Re: ImageCFC 2.10 Now Available Rick Root wrote: I'm going to update the box blur too... and maybe also develop an object oriented interface to imagecfc cfscript objImage = createObject(component,imageObject); objImage.init(C:\Inetpub\wwwroot\myimage.gif); objImage.resize(400,300); objImage.addText(fontDetails,Sample Text); objImage.save(compression=95); objImage.saveAs(filename=C:\Inetpub\wwwroot\myimage.gif,compression=95); cfscript I think it might simplify use... but I don't want to mess with the main CFC. This is done and part of release version 2.11, now available. The object oriented wrapper includes a revert() method allowing you to undo one level of changes. If you store the image object in a session variable, you can manipulate an image, and if you don't like it, revert back. I think my next goal will be to *FINALLY* integrate the new imageCFC into CFFM. Being able to revert changes would be a nice feature for those oops momemts. The oo wrapper isn't documented, but it's included in the download for 2.11 Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264062 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC 2.10 Now Available
Very slick, Rick! This is a very cool cfc! Cheers, Chris Rick Root wrote: http://www.opensourcecf.com/imagecfc/ version 2.10 adds image filtering capability to ImageCFC, including the following: o simple blur (very fast) o box blur (slow) o gaussian blur (slow) o sharpen o posterize Some examples of each of the filters. http://www.opensourcecf.com/imagecfc/examples.cfm Thanks to everyone who assisted via the list! Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263990 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ImageCFC 2.10 Now Available
I agree! ;-) Yves On 12/13/06, Christopher Jordan [EMAIL PROTECTED] wrote: Very slick, Rick! This is a very cool cfc! Cheers, Chris Rick Root wrote: http://www.opensourcecf.com/imagecfc/ version 2.10 adds image filtering capability to ImageCFC, including the following: o simple blur (very fast) o box blur (slow) o gaussian blur (slow) o sharpen o posterize Some examples of each of the filters. http://www.opensourcecf.com/imagecfc/examples.cfm Thanks to everyone who assisted via the list! Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264011 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ImageCFC 2.10 Now Available
as always, thanks Rick! http://www.opensourcecf.com/imagecfc/ version 2.10 adds image filtering capability to ImageCFC, including the following: o simple blur (very fast) o box blur (slow) o gaussian blur (slow) o sharpen o posterize Some examples of each of the filters. http://www.opensourcecf.com/imagecfc/examples.cfm Thanks to everyone who assisted via the list! Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264014 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: ImageCFC 2.0 Released
Hey Rick... Did you get the image compression sorted out? Did you try my method with the slight blur? I recommend changing the picture of the Disney castle to a new pic so that the new version stands out more. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Friday, December 08, 2006 10:35 PM To: CF-Talk Subject: ImageCFC 2.0 Released I've completed imageCFC version 2.0 Numerous changes since beta 3... and unfortunately some of the changes will break your code if you're using image.cfc 2.0 beta. http://www.opensourcecf.com/imagecfc NEW (REAL) DOCUMENTATION! http://www.opensourcecf.com/imagecfc/docs/imageCFC.cfm This release includes a few bug changes plus the following changes: o readImage() and writeImage() are now public methods. o writeImage() method writes to temp directory and then uses cffile to move image to its final destination. This corrects a known issue where resizing an image down and saving it to the same file did not actually reduce the physical file size. o changed scaleX() to scaleWidth() o changed scaleY() to scaleHeight() o Added optional preserveAspect argument to resize() method (allowing you to resize an image to fit within a certain width and height without messing with the aspect ratio) o You can turn text antialiasing on and off, or change the interpolation mode now using the setOption() method. o WROTE REAL API DOCUMENTATION! There are a variety of other fixes and minor enhancements. Please see the full change log on the site for details. Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263520 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ImageCFC 2.0 Released
thanks for the good work Rick! I've completed imageCFC version 2.0 Numerous changes since beta 3... and unfortunately some of the changes will break your code if you're using image.cfc 2.0 beta. http://www.opensourcecf.com/imagecfc NEW (REAL) DOCUMENTATION! http://www.opensourcecf.com/imagecfc/docs/imageCFC.cfm This release includes a few bug changes plus the following changes: o readImage() and writeImage() are now public methods. o writeImage() method writes to temp directory and then uses cffile to move image to its final destination. This corrects a known issue where resizing an image down and saving it to the same file did not actually reduce the physical file size. o changed scaleX() to scaleWidth() o changed scaleY() to scaleHeight() o Added optional preserveAspect argument to resize() method (allowing you to resize an image to fit within a certain width and height without messing with the aspect ratio) o You can turn text antialiasing on and off, or change the interpolation mode now using the setOption() method. o WROTE REAL API DOCUMENTATION! There are a variety of other fixes and minor enhancements. Please see the full change log on the site for details. Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263425 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC
Hi Jenny, I have this here http://johnnyle.no-ip.com/list.cfm?qa_id=210 It may not be what you are looking for, but you could use it as a starting point. This one can only resize an image. Johnny Trying to find code examples/docs for the image cfc, can anyone post me a link/s, please? Thanks, Jenny -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 03/11/2006 ~| 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:259166 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ImageCFC
Are the actual examples on this site not good enough? http://www.opensourcecf.com/imagecfc/example.cfm ~| 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:259171 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ImageCFC
Mark Flewellen wrote: 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. Mark, this is a known issue. The workaround is to save it to a new filename and then rename it back. I haven't had time to figure out *WHY* it doesn't change the file size. Rick ~| 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:256742 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ImageCFC
Mark Flewellen wrote: 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. Mark, this is a known issue. The workaround is to save it to a new filename and then rename it back. I haven't had time to figure out *WHY* it doesn't change the file size. Rick ~| 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:256765 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC
Thanks Rick, Couldn't understand what I was doing wrong. 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:256766 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC
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
Re: ImageCFC
My code is very similar to yours Dave, I upload the file to the server using cffile, I then rename the file to something suitable. What I am finding is that when I use the scaleX or scaleY tag it rescales the image perfectly, however the filesize doesn't change. This only occurs if the source and the destination are the same. The component works perfectly if the destination is not the same as the source. cfinvoke component=#application.mapping#image method=scaleX returnvariable=scaleXRet objImage= inputFile=/var/www/vhosts/?domainname?/httpdocs/assets/uploads/images/image outputFile=/var/www/vhosts/?domainname?/httpdocs/assets/uploads/images/image newWidth=#form.size# jpegCompression=#application.image_quality#/cfinvoke ~| 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:256224 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: ImageCFC
Are you sure the file size isn't changing? It could be that it's actually changing but somehow caching the old file information. How are you viewing the file size? Right clicking on the image and looking at properties through the browser? If so, then IE (at least) does cache file info sometimes. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Mark Flewellen [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 3:21 AM To: CF-Talk Subject: Re: ImageCFC My code is very similar to yours Dave, I upload the file to the server using cffile, I then rename the file to something suitable. What I am finding is that when I use the scaleX or scaleY tag it rescales the image perfectly, however the filesize doesn't change. This only occurs if the source and the destination are the same. The component works perfectly if the destination is not the same as the source. cfinvoke component=#application.mapping#image method=scaleX returnvariable=scaleXRet objImage= inputFile=/var/www/vhosts/?domainname?/httpdocs/assets/uploads/images/image outputFile=/var/www/vhosts/?domainname?/httpdocs/assets/uploads/images/imag e newWidth=#form.size# jpegCompression=#application.image_quality#/cfinvoke ~| 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:256263 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC
Then put the resized one in another folder and see if its been reduced. ~| 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:256400 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: imageCFC imaging component
Excellent, just the answer I was hoping for - and the CF fonts are a bonus :) On 29/09/06, Rick Root [EMAIL PROTECTED] wrote: Andy Matthews wrote: Yes. Just put the chosen font whereever you like and reference it in that directory. Right, the fontDetails argument that you pass to the addText() method takes a filename which can be a full path to anywhere you put the font file. Keep in mind that uploading a font from your windows font directory might not be legal =) Of course, you can also find fonts installed in the the JRE for coldfusion. # cd /opt/coldfusionmx7/ # find . | grep -i ttf ../runtime/jre/lib/fonts/LucidaSansDemiBold.ttf ../runtime/jre/lib/fonts/LucidaBrightItalic.ttf ../runtime/jre/lib/fonts/LucidaTypewriterBold.ttf ../runtime/jre/lib/fonts/LucidaSansDemiOblique.ttf ../runtime/jre/lib/fonts/LucidaBrightDemiItalic.ttf ../runtime/jre/lib/fonts/LucidaSansOblique.ttf ../runtime/jre/lib/fonts/LucidaBrightRegular.ttf ../runtime/jre/lib/fonts/LucidaBrightDemiBold.ttf ../runtime/jre/lib/fonts/LucidaTypewriterRegular.ttf ../runtime/jre/lib/fonts/LucidaTypewriterOblique.ttf ../runtime/jre/lib/fonts/LucidaTypewriterBoldOblique.ttf ../runtime/jre/lib/fonts/LucidaSansRegular.ttf Rick ~| 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:254882 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: imageCFC imaging component
ImageCFC already has that capability. http://tutorial483.easycfm.com/ I believe that tutorial terms it as scaling images. -Original Message- From: Martin Thorpe [mailto:[EMAIL PROTECTED] Sent: Friday, September 29, 2006 1:21 AM To: CF-Talk Subject: imageCFC imaging component Hello I am looking for an imaging component that can do all that imageCFC does http://www.opensourcecf.com/imagecfc/ but also with the ability to make a thumbnail. At the same cost as imageCFC would be good ;-) can anyone advise on my options? Thanks for reading. cheers Martin ~| 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:254704 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: imageCFC imaging component
Hello Matt. Excellent, I was hoping that it could. Nice one. cheers ~| 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:254705 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: imageCFC imaging component
Matt Quackenbush wrote: ImageCFC already has that capability. http://tutorial483.easycfm.com/ I believe that tutorial terms it as scaling images. Neat! someone wrote a tutorial about my stuff? how cool is that. ~| 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:254723 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: imageCFC imaging component
This has just reminded me of something I have been meaning to check about ImageCFC, a potential client asked me about adding text to an image on the fly and knowing that ImageCFC does that I said no problem. I then found out that the existing site is on a shared server though (linux/apache from memory) and I don't know where the fonts directory is, can you upload fonts locally and just point the tag at them? On 29/09/06, Rick Root [EMAIL PROTECTED] wrote: Matt Quackenbush wrote: ImageCFC already has that capability. http://tutorial483.easycfm.com/ I believe that tutorial terms it as scaling images. Neat! someone wrote a tutorial about my stuff? how cool is that. ~| 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:254740 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: imageCFC imaging component
Yes. Just put the chosen font whereever you like and reference it in that directory. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Wayne Putterill [mailto:[EMAIL PROTECTED] Sent: Friday, September 29, 2006 8:59 AM To: CF-Talk Subject: Re: imageCFC imaging component This has just reminded me of something I have been meaning to check about ImageCFC, a potential client asked me about adding text to an image on the fly and knowing that ImageCFC does that I said no problem. I then found out that the existing site is on a shared server though (linux/apache from memory) and I don't know where the fonts directory is, can you upload fonts locally and just point the tag at them? On 29/09/06, Rick Root [EMAIL PROTECTED] wrote: Matt Quackenbush wrote: ImageCFC already has that capability. http://tutorial483.easycfm.com/ I believe that tutorial terms it as scaling images. Neat! someone wrote a tutorial about my stuff? how cool is that. ~| 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:254748 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: imageCFC imaging component
Andy Matthews wrote: Yes. Just put the chosen font whereever you like and reference it in that directory. Right, the fontDetails argument that you pass to the addText() method takes a filename which can be a full path to anywhere you put the font file. Keep in mind that uploading a font from your windows font directory might not be legal =) Of course, you can also find fonts installed in the the JRE for coldfusion. # cd /opt/coldfusionmx7/ # find . | grep -i ttf ../runtime/jre/lib/fonts/LucidaSansDemiBold.ttf ../runtime/jre/lib/fonts/LucidaBrightItalic.ttf ../runtime/jre/lib/fonts/LucidaTypewriterBold.ttf ../runtime/jre/lib/fonts/LucidaSansDemiOblique.ttf ../runtime/jre/lib/fonts/LucidaBrightDemiItalic.ttf ../runtime/jre/lib/fonts/LucidaSansOblique.ttf ../runtime/jre/lib/fonts/LucidaBrightRegular.ttf ../runtime/jre/lib/fonts/LucidaBrightDemiBold.ttf ../runtime/jre/lib/fonts/LucidaTypewriterRegular.ttf ../runtime/jre/lib/fonts/LucidaTypewriterOblique.ttf ../runtime/jre/lib/fonts/LucidaTypewriterBoldOblique.ttf ../runtime/jre/lib/fonts/LucidaSansRegular.ttf Rick ~| 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:254764 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: imageCFC imaging component
Pretty cool if you ask me. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Friday, September 29, 2006 7:49 AM To: CF-Talk Subject: Re: imageCFC imaging component Matt Quackenbush wrote: ImageCFC already has that capability. http://tutorial483.easycfm.com/ I believe that tutorial terms it as scaling images. Neat! someone wrote a tutorial about my stuff? how cool is that. ~| 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:254776 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC Help
Good discussion about this cfc I have a quicky question I found it working but when the file is too large ie 1 megabyte it craps out if it's less than 300K it works great specificially this is what I used cfset imageCFC = createObject(component,image) cfset results2 = imageCFC.scaleX(, #ExpandPath(.)#/aaa.jpg, #ExpandPath(.)#/temp.jpg, 300) get the file aaa.jpg and make the width 300 K an save it as temp.jpg I went into the CF admin and increated the Timeout Requests after ( seconds ) to 6 seconds but this did not help My limited knowlege of CFC I think is hindering me here any suggestions would be greatly appreciated ~| 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:249802 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC Help
I use this with photos over 1mb everyday with no problems, I dont hink your experience with cfc's is the answer since you dont actually touch the cfc. You might want to ask your host if they have any limitations or to check the logs and see whats up. get the file aaa.jpg and make the width 300 K an save it as temp.jpg I went into the CF admin and increated the Timeout Requests after ( seconds ) to 6 seconds but this did not help My limited knowlege of CFC I think is hindering me here any suggestions would be greatly appreciated ~| 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:249921 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ImageCFC Help
Same here. Average photo size is 2 to 3 meg. Haven't had any troubles. Casey On 8/15/06, Dave Lyons [EMAIL PROTECTED] wrote: I use this with photos over 1mb everyday with no problems, I dont hink your experience with cfc's is the answer since you dont actually touch the cfc. You might want to ask your host if they have any limitations or to check the logs and see whats up. ~| 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:249928 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: imageCFC: Scale x/y vs Resize
Michael E. Carluen wrote: Rick R (or anyone familiar): I was wondering what the main differences between scaleX/scaleY versus Resize in terms of image output quality. I am aware of the obvious difference that Resize needs both width and height arguments, and scaleX only needs the desired width etc. resize allows you to resize an image OR scale an image, depending on the arguments. Scaling an image means resizing to a specific width or height, and keeping the aspect ratio the same. The scaleX and scaleY metods don't actually do anything but make calls to the resize() method with the appropriate arguments. Rick ~| 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/cf_lists/message.cfm/forumid:4/messageid:247000 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: imageCFC: Scale x/y vs Resize
Thanks for confirming, Rick. I really just wanted to know if there was anything beyond what was obvious. -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 6:05 PM To: CF-Talk Subject: Re: imageCFC: Scale x/y vs Resize Michael E. Carluen wrote: Rick R (or anyone familiar): I was wondering what the main differences between scaleX/scaleY versus Resize in terms of image output quality. I am aware of the obvious difference that Resize needs both width and height arguments, and scaleX only needs the desired width etc. resize allows you to resize an image OR scale an image, depending on the arguments. Scaling an image means resizing to a specific width or height, and keeping the aspect ratio the same. The scaleX and scaleY metods don't actually do anything but make calls to the resize() method with the appropriate arguments. Rick ~| 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/cf_lists/message.cfm/forumid:4/messageid:247002 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: ImageCFC Help
B V wrote: I am trying to use ImageCFC, and I don't get how to use it. I am trying to get the info on a particular image, and I have tried doing this: cfinvoke component=cfcs.image returnvariable=myimg method=getImageInfo cfinvokeargument name=objImage value=myimage cfinvokeargument name=inputFile value=/vservers/dir/htdocs/img/ph.jpg /cfinvoke cfdump var=#retVal# Am I calling this component right, or do I do somethign else, and is it possible that somethign else needs to be installed? Thanks for your help and time. No, you're not instantianting it right. Hi, there should be plenty of example code in the distribution. The example page has code on how to use it. Lots of examples. http://www.opensourcecf.com/imagecfc/example.cfm Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245200 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
Ok, I have followed the example, and this is my new code: cfset imagecfc = createObject(component,image) cfset results2 = imageCFC.scaleX(, /vservers/dir/htdocs/img/ph.jpg, /vservers/interech/htdocs/img/ph.jpg, 400) However, that hasn't worked either. Am I supposed to invoke a CFC or install something on the server also? (I have already put image.cfc in my cfc dir) On 7/1/06, Rick Root [EMAIL PROTECTED] wrote: B V wrote: I am trying to use ImageCFC, and I don't get how to use it. I am trying to get the info on a particular image, and I have tried doing this: cfinvoke component=cfcs.image returnvariable=myimg method=getImageInfo cfinvokeargument name=objImage value=myimage cfinvokeargument name=inputFile value=/vservers/dir/htdocs/img/ph.jpg /cfinvoke cfdump var=#retVal# Am I calling this component right, or do I do somethign else, and is it possible that somethign else needs to be installed? Thanks for your help and time. No, you're not instantianting it right. Hi, there should be plenty of example code in the distribution. The example page has code on how to use it. Lots of examples. http://www.opensourcecf.com/imagecfc/example.cfm Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245201 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
Can you post the specific error message? On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, I have followed the example, and this is my new code: cfset imagecfc = createObject(component,image) cfset results2 = imageCFC.scaleX(, /vservers/dir/htdocs/img/ph.jpg, /vservers/interech/htdocs/img/ph.jpg, 400) However, that hasn't worked either. Am I supposed to invoke a CFC or install something on the server also? (I have already put image.cfc in my cfc dir) -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245202 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
That's partly the problem; There is NO error message I thought maybe it could be paths, but I checked paths and set the dir to 777 file permissions (I'm on LNX) On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: Can you post the specific error message? On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, I have followed the example, and this is my new code: cfset imagecfc = createObject(component,image) cfset results2 = imageCFC.scaleX(, /vservers/dir/htdocs/img/ph.jpg, /vservers/interech/htdocs/img/ph.jpg, 400) However, that hasn't worked either. Am I supposed to invoke a CFC or install something on the server also? (I have already put image.cfc in my cfc dir) -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245203 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
OK, so what (doesn't) happen(s)? On 7/1/06, B V [EMAIL PROTECTED] wrote: That's partly the problem; There is NO error message I thought maybe it could be paths, but I checked paths and set the dir to 777 file permissions (I'm on LNX) On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: Can you post the specific error message? On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, I have followed the example, and this is my new code: cfset imagecfc = createObject(component,image) cfset results2 = imageCFC.scaleX(, /vservers/dir/htdocs/img/ph.jpg, /vservers/interech/htdocs/img/ph.jpg, 400) However, that hasn't worked either. Am I supposed to invoke a CFC or install something on the server also? (I have already put image.cfc in my cfc dir) -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245204 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
I have a walk-through of how to use imageCFC functionality on my site at http://www.remotesynthesis.com/blog/index.cfm/2006/4/3/Image-Manipulation-with-OpenSource-Imagecfc It gives simple examples of crop, scale, resize, etc. Hope that helps. - Brian Rinaldi blog - http://www.remotesynthesis.com/blog CF Open Source List - http://www.remotesynthesis.com/cfopensourcelist Boston CFUG - http://www.bostoncfug.org On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: OK, so what (doesn't) happen(s)? On 7/1/06, B V [EMAIL PROTECTED] wrote: That's partly the problem; There is NO error message I thought maybe it could be paths, but I checked paths and set the dir to 777 file permissions (I'm on LNX) On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: Can you post the specific error message? On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, I have followed the example, and this is my new code: cfset imagecfc = createObject(component,image) cfset results2 = imageCFC.scaleX(, /vservers/dir/htdocs/img/ph.jpg, /vservers/interech/htdocs/img/ph.jpg, 400) However, that hasn't worked either. Am I supposed to invoke a CFC or install something on the server also? (I have already put image.cfc in my cfc dir) -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245205 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
Ok, this really clears thigns up, however I just have two questions: 1). Is some special installation required to access the methods of the component liek shown 2). Do you have to call the component (cfinvoke), or can you just call it by cfset imageCFC = createObject(component,com.image) /, and also is com.image predefined? On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: OK, so what (doesn't) happen(s)? On 7/1/06, B V [EMAIL PROTECTED] wrote: That's partly the problem; There is NO error message I thought maybe it could be paths, but I checked paths and set the dir to 777 file permissions (I'm on LNX) On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: Can you post the specific error message? On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, I have followed the example, and this is my new code: cfset imagecfc = createObject(component,image) cfset results2 = imageCFC.scaleX(, /vservers/dir/htdocs/img/ph.jpg, /vservers/interech/htdocs/img/ph.jpg, 400) However, that hasn't worked either. Am I supposed to invoke a CFC or install something on the server also? (I have already put image.cfc in my cfc dir) -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245206 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
You do not need any special install, that is the great thing about imageCFC or Alagad image component (which isn't free but is quite good). Lastly, com.image is just the file location of imageCFC from the root of my site (/com/image.cfc). You can change this to whatever directory you have imageCFC in. - Brian Rinaldi blog - http://www.remotesynthesis.com/blog CF Open Source List - http://www.remotesynthesis.com/cfopensourcelist Boston CFUG - http://www.bostoncfug.org On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, this really clears thigns up, however I just have two questions: 1). Is some special installation required to access the methods of the component liek shown 2). Do you have to call the component (cfinvoke), or can you just call it by cfset imageCFC = createObject(component,com.image) /, and also is com.image predefined? On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: OK, so what (doesn't) happen(s)? On 7/1/06, B V [EMAIL PROTECTED] wrote: That's partly the problem; There is NO error message I thought maybe it could be paths, but I checked paths and set the dir to 777 file permissions (I'm on LNX) On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: Can you post the specific error message? On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, I have followed the example, and this is my new code: cfset imagecfc = createObject(component,image) cfset results2 = imageCFC.scaleX(, /vservers/dir/htdocs/img/ph.jpg, /vservers/interech/htdocs/img/ph.jpg, 400) However, that hasn't worked either. Am I supposed to invoke a CFC or install something on the server also? (I have already put image.cfc in my cfc dir) -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245209 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
1) It depends on your system. If you have a grahics card all should be well. If you are on a headless Linux system, some work may be required but you should be getting an error if this were the issue. 2) You can use the createObject() call. If image.cfc is in the same folder as your file or in the web root (or in the root of the / mapping) CF will find it if you use createObject(component,image). If you are going to use a com directory, the CFC must be either in the /com folder off the webroot or it must be in a folder mapped to /com. Eitehr way, You;d get an error if it were not working. Hence my question; what is or is not happeneing to make you say there is an error? Do you just not get an output image? On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, this really clears thigns up, however I just have two questions: 1). Is some special installation required to access the methods of the component liek shown 2). Do you have to call the component (cfinvoke), or can you just call it by cfset imageCFC = createObject(component,com.image) /, and also is com.image predefined? -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245212 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
To everyone that heleped, Brian, James and Rick, Thanks for your help. It is now working, and now I don't ahve to post to a PHP ImageMagick script :). That's interesting: I didn't know you could call a component by useing cfset var = createObject() etc. It's amazing how quickly I got a response; it's amazing that within 15 minutes I got a response from Rick, the creator. I've never seen forums like Houseoffusion so quick; On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, this really clears thigns up, however I just have two questions: 1). Is some special installation required to access the methods of the component liek shown 2). Do you have to call the component (cfinvoke), or can you just call it by cfset imageCFC = createObject(component,com.image) /, and also is com.image predefined? On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: OK, so what (doesn't) happen(s)? On 7/1/06, B V [EMAIL PROTECTED] wrote: That's partly the problem; There is NO error message I thought maybe it could be paths, but I checked paths and set the dir to 777 file permissions (I'm on LNX) On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: Can you post the specific error message? On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, I have followed the example, and this is my new code: cfset imagecfc = createObject(component,image) cfset results2 = imageCFC.scaleX(, /vservers/dir/htdocs/img/ph.jpg, /vservers/interech/htdocs/img/ph.jpg, 400) However, that hasn't worked either. Am I supposed to invoke a CFC or install something on the server also? (I have already put image.cfc in my cfc dir) -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245213 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
You should try getting these packages working with a headless Solaris system via a virtual XServer. It took us ages to find something that worked. On 7/1/06, Brian Rinaldi [EMAIL PROTECTED] wrote: You do not need any special install, that is the great thing about imageCFC or Alagad image component (which isn't free but is quite good). Lastly, com.image is just the file location of imageCFC from the root of my site (/com/image.cfc). You can change this to whatever directory you have imageCFC in. - Brian Rinaldi blog - http://www.remotesynthesis.com/blog CF Open Source List - http://www.remotesynthesis.com/cfopensourcelist Boston CFUG - http://www.bostoncfug.org On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, this really clears thigns up, however I just have two questions: 1). Is some special installation required to access the methods of the component liek shown 2). Do you have to call the component (cfinvoke), or can you just call it by cfset imageCFC = createObject(component,com.image) /, and also is com.image predefined? On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: OK, so what (doesn't) happen(s)? On 7/1/06, B V [EMAIL PROTECTED] wrote: That's partly the problem; There is NO error message I thought maybe it could be paths, but I checked paths and set the dir to 777 file permissions (I'm on LNX) On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: Can you post the specific error message? On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, I have followed the example, and this is my new code: cfset imagecfc = createObject(component,image) cfset results2 = imageCFC.scaleX(, /vservers/dir/htdocs/img/ph.jpg, /vservers/interech/htdocs/img/ph.jpg, 400) However, that hasn't worked either. Am I supposed to invoke a CFC or install something on the server also? (I have already put image.cfc in my cfc dir) -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245214 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
'com.image' implies that the image.cfc component is in a directory named 'com'. To do the simplest test, put the image.cfc in the same directory as the .cfm file you are using. Then to invoke the object: cfset imageCFC = createObject(component,image) / If you have image.cfc in a directory called 'CFC' that is in the same directory as your .cfm file, then do... cfset imageCFC = createObject(component,cfc.image) / If you want to put components in another directory, you can add a mapping in the CF Administrator. On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, this really clears thigns up, however I just have two questions: 1). Is some special installation required to access the methods of the component liek shown 2). Do you have to call the component (cfinvoke), or can you just call it by cfset imageCFC = createObject(component,com.image) /, and also is com.image predefined? On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: OK, so what (doesn't) happen(s)? On 7/1/06, B V [EMAIL PROTECTED] wrote: That's partly the problem; There is NO error message I thought maybe it could be paths, but I checked paths and set the dir to 777 file permissions (I'm on LNX) On 7/1/06, James Holmes [EMAIL PROTECTED] wrote: Can you post the specific error message? On 7/1/06, B V [EMAIL PROTECTED] wrote: Ok, I have followed the example, and this is my new code: cfset imagecfc = createObject(component,image) cfset results2 = imageCFC.scaleX(, /vservers/dir/htdocs/img/ph.jpg, /vservers/interech/htdocs/img/ph.jpg, 400) However, that hasn't worked either. Am I supposed to invoke a CFC or install something on the server also? (I have already put image.cfc in my cfc dir) -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245215 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC Help
btw, thanks for all others responding, I'm still in DC with limited laptop time :) (I hate using laptops!) Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245240 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: imagecfc ?
dave wrote: hey Rick or anyone who knows, can you set this to not use any compression on the image at all? I believe the default is already set but I dont see where i can by pass that. the default is set to 93 I think.. if you set it to 100, I think that's no compression You could either pass it in or modify the image.cfc itself to change the default. Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244044 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: imagecfc ? (rick roots)
what you can't paste the error message in here? ;) Try taking out the parameter names... all of them... ie, remove newHeight= newWidth= etc... Rick That was 2 sites a go Rick, sorry but next time I need it I will try it again :) ~Dave the disruptor~ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233716 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: imagecfc ? (rick roots)
dave wrote: lol, ok lets try again.. Yes I caught Ricks error but even after adding the correct info it still errors. The error was on newHeight=51, said that the = wasnt allowed in the expression or something. what you can't paste the error message in here? ;) Try taking out the parameter names... all of them... ie, remove newHeight= newWidth= etc... Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233531 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: imagecfc ? (rick roots)
That's probably because there is no resizeImage method...it is just resize... cfscript imageCFC = createObject(component,image); img = imagecfc.resize(objImage=,inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51,newHeight=41); /cfscript On 2/26/06, dave [EMAIL PROTECTED] wrote: that gives me error It looks like this would be all I need img = imagecfc.resizeImage(objImage=, inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51, newHeight=41) but that gives an error for the = between newheight, etc... ~Dave the disruptor~ From: Rick Root [EMAIL PROTECTED] Sent: Sunday, February 26, 2006 12:20 AM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: imagecfc ? (rick roots) dave wrote: I got a ? on do a resizing, I need to make thumbnails 51px x 41px, so I could do the resize then flip it and do another resize but is it possible to do it in one call instead of 3? Well... if you wrote a custom function to do it. You can do it in one pass... ie, one file read and one file write: (I'm using named arguments in this example for clarity) // load imagecfc imagecfc = createObject(component,image); // read image file, resize and return image object img = imagecfc.resizeImage(objImage=, inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51, newHeight=41); // flip image object and return image object img = imagecfc.flipHorizontal(objImage=img, inputFile=, outputFile=); // resize image object and output new file. results = imagecfc.resizeImage(objImage=img, inputFile=, outputFile=C:\Inetpub\wwwroot\foo2.jpg, newWidth=30, newHeight=30); Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233498 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: imagecfc ? (rick roots)
oops... don't know me own code! ;) Jim Wright wrote: That's probably because there is no resizeImage method...it is just resize... cfscript imageCFC = createObject(component,image); img = imagecfc.resize(objImage=,inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51,newHeight=41); /cfscript On 2/26/06, dave [EMAIL PROTECTED] wrote: that gives me error It looks like this would be all I need img = imagecfc.resizeImage(objImage=, inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51, newHeight=41) but that gives an error for the = between newheight, etc... ~Dave the disruptor~ From: Rick Root [EMAIL PROTECTED] Sent: Sunday, February 26, 2006 12:20 AM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: imagecfc ? (rick roots) dave wrote: I got a ? on do a resizing, I need to make thumbnails 51px x 41px, so I could do the resize then flip it and do another resize but is it possible to do it in one call instead of 3? Well... if you wrote a custom function to do it. You can do it in one pass... ie, one file read and one file write: (I'm using named arguments in this example for clarity) // load imagecfc imagecfc = createObject(component,image); // read image file, resize and return image object img = imagecfc.resizeImage(objImage=, inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51, newHeight=41); // flip image object and return image object img = imagecfc.flipHorizontal(objImage=img, inputFile=, outputFile=); // resize image object and output new file. results = imagecfc.resizeImage(objImage=img, inputFile=, outputFile=C:\Inetpub\wwwroot\foo2.jpg, newWidth=30, newHeight=30); Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233500 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: imagecfc ? (rick roots)
DOH!! lol that was as good as mine the other night Rick ;) But I had caught the error but it still got error. ~Dave the disruptor~ From: Rick Root [EMAIL PROTECTED] Sent: Sunday, February 26, 2006 10:53 AM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: imagecfc ? (rick roots) oops... don't know me own code! ;) Jim Wright wrote: That's probably because there is no resizeImage method...it is just resize... imageCFC = createObject(component,image); img = imagecfc.resize(objImage=,inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51,newHeight=41); On 2/26/06, dave wrote: that gives me error It looks like this would be all I need img = imagecfc.resizeImage(objImage=, inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51, newHeight=41) but that gives an error for the = between newheight, etc... ~Dave the disruptor~ From: Rick Root Sent: Sunday, February 26, 2006 12:20 AM To: CF-Talk Subject: Re: imagecfc ? (rick roots) dave wrote: I got a ? on do a resizing, I need to make thumbnails 51px x 41px, so I could do the resize then flip it and do another resize but is it possible to do it in one call instead of 3? Well... if you wrote a custom function to do it. You can do it in one pass... ie, one file read and one file write: (I'm using named arguments in this example for clarity) // load imagecfc imagecfc = createObject(component,image); // read image file, resize and return image object img = imagecfc.resizeImage(objImage=, inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51, newHeight=41); // flip image object and return image object img = imagecfc.flipHorizontal(objImage=img, inputFile=, outputFile=); // resize image object and output new file. results = imagecfc.resizeImage(objImage=img, inputFile=, outputFile=C:\Inetpub\wwwroot\foo2.jpg, newWidth=30, newHeight=30); Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233506 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: imagecfc ? (rick roots)
dave wrote: But I had caught the error but it still got error. You speaka da english?? ;) I assume you mean it's still not working. It would be helpful to know exactly what error is occurring... otherwise, you sound like one of my users! It don't work, why not?... or my directory. Hey Rick, I got an error last night when I went to page X last night What was the error? I don't know. =) Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233515 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: imagecfc ? (rick roots)
lol, ok lets try again.. Yes I caught Ricks error but even after adding the correct info it still errors. The error was on newHeight=51, said that the = wasnt allowed in the expression or something. hell you know I can't type, I ain't no secretary! btw~ a kind soul from the hms forums a bit of code to your cfc to resize it square, if you want it lemme know. Hey Rick, I got an error last night when I went to page X last night What was the error? I don't know. lol, well I can't help you there cause my stuff dont error ;)~ ~Dave the disruptor~ From: Rick Root [EMAIL PROTECTED] Sent: Sunday, February 26, 2006 4:01 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: imagecfc ? (rick roots) dave wrote: But I had caught the error but it still got error. You speaka da english?? ;) I assume you mean it's still not working. It would be helpful to know exactly what error is occurring... otherwise, you sound like one of my users! It don't work, why not?... or my directory. Hey Rick, I got an error last night when I went to page X last night What was the error? I don't know. =) Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233524 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: imagecfc ? (rick roots)
dave wrote: I got a ? on do a resizing, I need to make thumbnails 51px x 41px, so I could do the resize then flip it and do another resize but is it possible to do it in one call instead of 3? Well... if you wrote a custom function to do it. You can do it in one pass... ie, one file read and one file write: (I'm using named arguments in this example for clarity) cfscript // load imagecfc imagecfc = createObject(component,image); // read image file, resize and return image object img = imagecfc.resizeImage(objImage=, inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51, newHeight=41); // flip image object and return image object img = imagecfc.flipHorizontal(objImage=img, inputFile=, outputFile=); // resize image object and output new file. results = imagecfc.resizeImage(objImage=img, inputFile=, outputFile=C:\Inetpub\wwwroot\foo2.jpg, newWidth=30, newHeight=30); /cfscript Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233488 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: imagecfc ? (rick roots)
thanks Rick, i will give that a go ~Dave the disruptor~ From: Rick Root [EMAIL PROTECTED] Sent: Sunday, February 26, 2006 12:20 AM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: imagecfc ? (rick roots) dave wrote: I got a ? on do a resizing, I need to make thumbnails 51px x 41px, so I could do the resize then flip it and do another resize but is it possible to do it in one call instead of 3? Well... if you wrote a custom function to do it. You can do it in one pass... ie, one file read and one file write: (I'm using named arguments in this example for clarity) // load imagecfc imagecfc = createObject(component,image); // read image file, resize and return image object img = imagecfc.resizeImage(objImage=, inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51, newHeight=41); // flip image object and return image object img = imagecfc.flipHorizontal(objImage=img, inputFile=, outputFile=); // resize image object and output new file. results = imagecfc.resizeImage(objImage=img, inputFile=, outputFile=C:\Inetpub\wwwroot\foo2.jpg, newWidth=30, newHeight=30); Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233491 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: imagecfc ? (rick roots)
that gives me error It looks like this would be all I need img = imagecfc.resizeImage(objImage=, inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51, newHeight=41) but that gives an error for the = between newheight, etc... ~Dave the disruptor~ From: Rick Root [EMAIL PROTECTED] Sent: Sunday, February 26, 2006 12:20 AM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: imagecfc ? (rick roots) dave wrote: I got a ? on do a resizing, I need to make thumbnails 51px x 41px, so I could do the resize then flip it and do another resize but is it possible to do it in one call instead of 3? Well... if you wrote a custom function to do it. You can do it in one pass... ie, one file read and one file write: (I'm using named arguments in this example for clarity) // load imagecfc imagecfc = createObject(component,image); // read image file, resize and return image object img = imagecfc.resizeImage(objImage=, inputFile=C:\Inetpub\wwwroot\foo.jpg, outputFile=, newWidth=51, newHeight=41); // flip image object and return image object img = imagecfc.flipHorizontal(objImage=img, inputFile=, outputFile=); // resize image object and output new file. results = imagecfc.resizeImage(objImage=img, inputFile=, outputFile=C:\Inetpub\wwwroot\foo2.jpg, newWidth=30, newHeight=30); Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233494 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ImageCFC component Available
Dave... In addition to the things that Rick's app can do, Alagad's component also allows you to open images from the server and use them to watermark other images. I wrote an app that took a clients logo and superimposed it onto photos that users would upload. If Rick could include that functionality in his, there'd be no reason to purchase Alagad's version. !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Saturday, February 04, 2006 11:33 PM To: CF-Talk Subject: Re: ImageCFC component Available dave wrote: Hey Rick, how does this compare to alagad? I was supposed to buy that today and just curious, i'm def gunna give yours a shot first though. I honestly haven't even demo'ed Alagad because I was happy, for the most part, with the free options available =) At least, happy enough to know that I didn't want to pay for something. I do know that Alagad does a LOT more stuff, but if all you need is image resizing, cropping, rotating, flipping and flopping... image.cfc should do the trick. Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231408 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
Andy Matthews wrote: In addition to the things that Rick's app can do, Alagad's component also allows you to open images from the server and use them to watermark other images. I wrote an app that took a clients logo and superimposed it onto photos that users would upload. If Rick could include that functionality in his, there'd be no reason to purchase Alagad's version. Since watermarking was in Jim Dew's original image.cfc, I *DO* have the code for it, I just hadn't added it back in yet. It's on my TODO list! Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231412 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
Does your cfc do all the cool text manipulation that Alagad does? On 2/6/06, Rick Root [EMAIL PROTECTED] wrote: Since watermarking was in Jim Dew's original image.cfc, I *DO* have the code for it, I just hadn't added it back in yet. It's on my TODO list! -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231436 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ImageCFC component Available
Oh yeah. That'd be a fantastic thing to have in there. !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, February 06, 2006 9:33 AM To: CF-Talk Subject: Re: ImageCFC component Available Does your cfc do all the cool text manipulation that Alagad does? ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231438 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
James Holmes wrote: Does your cfc do all the cool text manipulation that Alagad does? I don't know what cool text manipulation stuff alagad does. My component allows you to add text to an image using a truetype font, and you can specify size and color. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231444 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
I have a font product to build a site for, and I was delighted to see that this image.cfc does allow putting text on an image with a true type font Our problem was how to give people a sample of the font, without letting them get their hands on the font itself.This offers a way to do it on the fly. We'll have a graphic of some kind, and overlay the user-supplied text using the font in question, so they can see what it looks like, without having it so it's easy to snag, which would be the case if we used something like PDF or Flashpaper to produce it. And image.cfc is so easy-as-pie to use for someone practiced at using CFCs. Well done, RIck. When I recover my cost on the font product and sell my second hundred grand's worth of it, i'll drop you a fat cheque. Cheers Mike Kear Windsor, NSW, Australia Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com On 2/7/06, Rick Root [EMAIL PROTECTED] wrote: James Holmes wrote: Does your cfc do all the cool text manipulation that Alagad does? I don't know what cool text manipulation stuff alagad does. My component allows you to add text to an image using a truetype font, and you can specify size and color. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231449 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ImageCFC component Available
Rick... Does your component have any issues with running on headless Linux systems? I coded a site locally (WinXP) using Massimo's TMT Image CFC and then uploaded it to the server (Linux) where it promptly ceased to function. Massimo tweaked some code and got it working. !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Monday, February 06, 2006 10:48 AM To: CF-Talk Subject: Re: ImageCFC component Available I have a font product to build a site for, and I was delighted to see that this image.cfc does allow putting text on an image with a true type font Our problem was how to give people a sample of the font, without letting them get their hands on the font itself.This offers a way to do it on the fly. We'll have a graphic of some kind, and overlay the user-supplied text using the font in question, so they can see what it looks like, without having it so it's easy to snag, which would be the case if we used something like PDF or Flashpaper to produce it. And image.cfc is so easy-as-pie to use for someone practiced at using CFCs. Well done, RIck. When I recover my cost on the font product and sell my second hundred grand's worth of it, i'll drop you a fat cheque. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231463 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
Andy Matthews wrote: Rick... Does your component have any issues with running on headless Linux systems? I coded a site locally (WinXP) using Massimo's TMT Image CFC and then uploaded it to the server (Linux) where it promptly ceased to function. Massimo tweaked some code and got it working. Image.cfc requires some CFAdmin changes to run in a headless environment, similar to the issue described in this article: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18747 Most hosting providers should be willing to make the configuration change necessary. You'll see that Massimo's CFC has the same problem, as he describes it on his web site: http://www.olimpo.ch/tmt/cfc/tmt_img/ As does Alagad... :) http://www.doughughes.net/index.cfm?event=viewEntryentryId=29 Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231503 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
Mike Kear wrote: i'll drop you a fat cheque. glad you like it. But a cheque? I don't take Canadian money ;) rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231505 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
hi rick, i am just trying out your component and have setup the following... cfif isDefined(FORM.image) cfset imagecfc = createObject(component,#Request.app.cfcRoot#.image) cfset new_image = imageCFC.scaleX(, #FORM.image#, C:\Documents and Settings\Craig\Desktop\resized.jpg, 100) /cfif form action=test.cfm method=post enctype=multipart/form-data input type=file name=image input type=submit name=submit value=Submit /form what am i doing wrong as it does not seem to be working? mike ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231509 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
Mike, image.cfc is for manipulating images on the server. It looks like you're trying to pass the path of a local file to the component and you can't do that. You'll have to handle the upload with cffile first before you can use image.cfc to manipulate it. go ahead and send any further inquiries off list. Rick Mike Little wrote: hi rick, i am just trying out your component and have setup the following... cfif isDefined(FORM.image) cfset imagecfc = createObject(component,#Request.app.cfcRoot#.image) cfset new_image = imageCFC.scaleX(, #FORM.image#, C:\Documents and Settings\Craig\Desktop\resized.jpg, 100) /cfif form action=test.cfm method=post enctype=multipart/form-data input type=file name=image input type=submit name=submit value=Submit /form what am i doing wrong as it does not seem to be working? mike ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231511 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
Mike, image.cfc is for manipulating images on the server. It looks like you're trying to pass the path of a local file to the component and you can't do that. You'll have to handle the upload with cffile first before you can use image.cfc to manipulate it. go ahead and send any further inquiries off list. Rick Mike Little wrote: aha. thanks for that. i think i can manage it now. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231514 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
I dont take canadian $$ cause it cost me money but hey they got good health care ;)~ jk jk anyways, I got it all working rick, good job! my one problem though was this, maybe I was being tired or not, I was using it to do a simple resize and what i thought I'd do is do the upload, grab the name and put it in as the origianl image them resize it and name it the samething as the original. However that threw errors and would only work if the renamed file was resized.jpg, which isnt a big deal but it adds more photos to the folder than you need. So what I ended up doing was uploading, resizing then doing another cffile to rename resized.jpg to a unique name. So was that just me or does it have to be named that? ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! From: Rick Root [EMAIL PROTECTED] Sent: Monday, February 06, 2006 4:23 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: ImageCFC component Available Mike Kear wrote: i'll drop you a fat cheque. glad you like it. But a cheque? I don't take Canadian money ;) rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231547 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
I can't wait til Rabidimage.cfc comes out! heeheehee! :) Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231348 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
Will Tomlinson wrote: I can't wait til Rabidimage.cfc comes out! heeheehee! hahahah ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231353 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
re: ImageCFC component Available
Hey Rick, how does this compare to alagad? I was supposed to buy that today and just curious, i'm def gunna give yours a shot first though. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! From: Rick Root [EMAIL PROTECTED] Sent: Friday, February 03, 2006 2:39 PM To: CF-Talk cf-talk@houseoffusion.com Subject: ImageCFC component Available Hi all, http://www.opensourcecf.com/imagecfc I've got my new image.cfc component ready for public consumption. I'm calling it 2.00 beta 1 right now. 2.00 because it's based on Jim Dew's original work. Beta because it's not thoroughly tested. It *HAS* been tested on CFMX 7 (Windows and Linux) and Bluedragon 6.2 JX (Linux). Should also work on CFMX 6.1. The most important feature is that it supports specifying JPEG compression, allowing you to increase your output quality as long as you're willing to accept he increase in file size. The CFC includes the following methods: getImageInfo(), rotate(), scaleX() scaleY(), resize(), flipHorizontal(), flipVertical(), crop(), and convert() It will read JPG, PNG, and GIF images from local files or from URLS. It will write JPG and PNG files. Any valid readable format can be converted to a valid writeable format. All functions can take a file, URL, or BufferedImage object as input. All functions can output a file OR return a BufferedImage object. all functions optionally accept a JPEG compression argument, a number between 0 and 100. The default is 90. Rick Root ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231362 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
dave wrote: Hey Rick, how does this compare to alagad? I was supposed to buy that today and just curious, i'm def gunna give yours a shot first though. I honestly haven't even demo'ed Alagad because I was happy, for the most part, with the free options available =) At least, happy enough to know that I didn't want to pay for something. I do know that Alagad does a LOT more stuff, but if all you need is image resizing, cropping, rotating, flipping and flopping... image.cfc should do the trick. Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231369 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
re: ImageCFC component Available
Thanks Rick:) ~Dave the disruptor~ google will pay you money to getting rid of ie :) http://explorerdestroyer.com/ http://www.killbillsbrowser.com/ From: Rick Root [EMAIL PROTECTED] Sent: Friday, February 03, 2006 2:39 PM To: CF-Talk cf-talk@houseoffusion.com Subject: ImageCFC component Available Hi all, http://www.opensourcecf.com/imagecfc I've got my new image.cfc component ready for public consumption. I'm calling it 2.00 beta 1 right now. 2.00 because it's based on Jim Dew's original work. Beta because it's not thoroughly tested. It *HAS* been tested on CFMX 7 (Windows and Linux) and Bluedragon 6.2 JX (Linux). Should also work on CFMX 6.1. The most important feature is that it supports specifying JPEG compression, allowing you to increase your output quality as long as you're willing to accept he increase in file size. The CFC includes the following methods: getImageInfo(), rotate(), scaleX() scaleY(), resize(), flipHorizontal(), flipVertical(), crop(), and convert() It will read JPG, PNG, and GIF images from local files or from URLS. It will write JPG and PNG files. Any valid readable format can be converted to a valid writeable format. All functions can take a file, URL, or BufferedImage object as input. All functions can output a file OR return a BufferedImage object. all functions optionally accept a JPEG compression argument, a number between 0 and 100. The default is 90. Rick Root ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231308 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
SWEET! Thanks dude! Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231332 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ImageCFC component Available
Nice work, Rick. I downloaded it and it works a treat. Nicely done. Cheers Mike Kear Windsor, NSW, Australia Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com On 2/4/06, Rick Root [EMAIL PROTECTED] wrote: Hi all, http://www.opensourcecf.com/imagecfc [/snip] ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231337 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54