imageUtils gets some Tiff love

This post is more than 2 years old.

Everyone's favorite image utility CFC (imageUtils) got some really nice Tiff support thanks to Daniel Budde II. New functions include:

  • isMultiTiff - Returns true if the Tiff image has multiple pages
  • isTiff - Returns true if the image is a Tiff. I found it a bit odd that none of the CF8 image functions seem to tell you kind of image you have (unless I'm missing the obvious)
  • tiffPageCount - Returns the number of pages in the Tiff
  • tiffSplit - lets you get pages from a multipage Tiff
  • tiffToPDF - this is a cool one - as you can guess, it turns a Tiff file into a PDF. Works awesome with multi-page Tiffs.

Thanks again to Daniel Budde II!

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA

Archived Comments

Comment 1 by Steve Walker posted on 4/16/2008 at 12:24 AM


Comment 2 by andy posted on 4/16/2008 at 1:18 AM

Awsome. Thank you for doing this.

Comment 3 by Raymond Camden posted on 4/16/2008 at 1:30 AM

I hope you mean Daniel, not me. ;) All I did was the grunt work. :)

Comment 4 by Devon Burriss posted on 4/17/2008 at 11:29 PM

I just sent Ben an email on this but thought I'd post here as well since Ray is also on Leopard and maybe some readers have experienced this. Has anyone tested the ImageUtils.cfc since updating to 8.0.1?
I have a site I'm working on and I have an image gallery which has stopped working. I pulled up a backup from a month ago that I know worked...not working. I downloaded imageUtil...not working.
The only thing I can think that changed was the CF update...
The errors on ImagePaste(from my code) & ImageCrop (using imageUtil.cfc) start like so:
ckTrace java.lang.NoClassDefFoundError at coldfusion.image.Image.paste( at coldfusion.runtime.CFPage.ImagePaste(


Comment 5 by Raymond Camden posted on 4/17/2008 at 11:35 PM

I work on 801 and Leopard and haven't seen any issue yet. A few of the text demos don't work because of fonts though - I'll have to edit them to use an available font.