paul.nowak wrote: Matt, thanks for the comments. I made an error on the version of Plone. It's 2.5 Plone running on Zope 2.9x.
In regards to the additional products, we have a skin installed and we have a product that we had custom developed for us that connects to a PostgreSQL database. We've looked at slow PostgreSQL queries causing problems and have not been able to find an issue. We've also tested for the case where the PostgreSQL server is down and have not been able to create an issue. We therefor...
Finally, ColdFusion 8 has incorporated image manipulation directly into the ColdFusion tag and scripting language. No more are we, as developers, chained to third-party products.
These products, while excellent in quality, just mean adding one more level of complexity to any application that requires server-side image manipulation. Now, with CFImage and an abundance of image-related functions, ColdFusion has done to image manipulation what it has done to almost every other aspect of Web applications development - it has made it simple.
Due to the wide array of image functionality in ColdFusion 8, I am going to try and break this tutorial up into several small and manageable parts. The first part will cover basic reading and writing of images using CFImage and the related image manipulation functions. But, before we get into that, let's just quickly touch upon these new features as a whole.
ColdFusion 8 has given us CFImage. CFImage provides us with tag-based access to only a small subset of the image functionality including:
Retrieving information about an image
Reading an image into memory
Resizing an image
Rotating an image
Adding a border to an image
Converting an image from one file format to another
Creating a CAPTCHA image
Writing an image to a file
Writing an image to the browser
In addition to the CFImage tag, ColdFusion has introduced dozens of new image manipulation functions including:
ImageAddBorder()
ImageBlur()
ImageClearRect()
ImageCopy()
ImageCrop()
ImageDrawArc()
ImageDrawBeveledRect()
ImageDrawCubicCurve()
ImageDrawLine()
ImageDrawLines()
ImageDrawOval()
ImageDrawPoint()
ImageDrawQuadraticCurve()
ImageDrawRect()
ImageGetEXIFTag()
ImageGetHeight()
ImageGetIPTCTag()
ImageGetWidth()
ImageGrayscale()
ImageInfo()
ImageNegative()
ImageNew()
ImageOverlay()
ImagePaste()
ImageRead()
ImageReadBase64()
ImageResize()
ImageRotate()
ImageRotateDrawingAxis()
ImageScaleToFit()
ImageSetAntialiasing()
The ColdFusion 8 CFImage tag and the image-related functions all deal with a new ColdFusion object:
coldfusion.image.Image
Most of you are not going to care about this one all that much, but for those of you who are interested in the underlying Java methods of the coldfusion.image.Image object, I have listed them below (skip past this if you have no idea what I'm talking about). Please note that any underlying methods of the actual Java/ColdFusion objects are found by gathering object metadata and through reflection; none of these methods are documented or officially supported. If you choose to use them, you do so at your own risk and discretion.
About Ben Nadel Ben Nadel has worked with ColdFusion for eight years and is a super ColdFusion enthusiast. He blogs regularly about all aspects of Web development on his personal site, http://www.bennadel.com, and does his best to give back to the ColdFusion community through online code demos and his "Ask Ben" blog posts. He is also a Certified Advanced ColdFusion MX7 developer and is one of the lead programmers at Nylon Technology.
I wonder if the CF team consulted with the developer of ImageCFC? It also was basically a wrapper for the underlying Java image functionality. Either way, this looks like an exceptionally useful tool. Do you need to instantiate the object using cfimage? Or is it possible to manipulate an image completely within cfscript?
#1
Sanjeev commented on 15 Jul 2007
rename the CodFusion as ColdFusion !
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice: