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!
Archived Comments
Nice!
Awsome. Thank you for doing this.
I hope you mean Daniel, not me. ;) All I did was the grunt work. :)
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(Image.java:2241) at coldfusion.runtime.CFPage.ImagePaste(CFPage.java:5946)
Anyone?
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.