At long last I’ve released an update to the Alagad Image Component. This release includes roughly 6 months of assorted bug fixes and a few new features.
Of particular note are the following updates:
The Image.cfc file can now be renamed to whatever you want. I’ve found that many people, especially non-English speakers want to rename the CFC. Now this is possible.
The Image Component used to require that any image read with the readImage() method had the correct file extension. Unfortunately, that’s hard to guarantee. Now, you can pass in the type of file through a new, optional, third argument on the readImage() method. So, for example, you could pass in the mime subtype that ColdFusion returns when users upload files.
The Image Component now has two methods for reading and writing raw binary data: readFromBinary() and writeToBinary(). These are useful for people who store image data in databases or may already have binary data in a variable and who want to use the Image Component without first writing the data to disk. (These two new methods bring the count of image manipulation functions on the Image Component over 100.)
Lastly, support for BlueDragon 6.1 has been removed. The Image Component continues to support BlueDragon 6.2 and, now, 6.2.1 too.