Whatever message this page gives is out now! Go check it out!
Task | Functions and actions |
Verify whether a ColdFusion variable returns an image | IsImage function |
Verify whether a file is a valid image | IsImageFile function |
Create thumbnail images | ImageScaleToFit function, the ImageResize function, or the resize action of the cfimage tag |
Create a watermark | ImageSetDrawingTransparency function with any of the ImageDraw functions and the ImagePaste function |
Get information about an image (for example, so you can enforce size restrictions) | ImageGetHeight and the ImageGetWidth functions or the ImageInfo function |
Enforce compression on JPEG images | quality attribute of the write action of the cfimage tag or the ImageWrite function |
Convert an image from one image file format to another (for example, convert a BMP file to a JPEG) | cfimage tag or ImageRead and ImageWrite functions |
Convert an image file to a Base64 string | cfimage tag or the ImageWriteBase64 function |
Create a ColdFusion image from a Base64 string | ImageReadBase64 function |
Insert a ColdFusion image as a Binary Large Object Bitmap (BLOB) in a database | ImageGetBlob function within a cfquery statement |
Create an image from a BLOB in a database | cfimage tag or the ImageNew function with a cfquery statement |
Create an image from a binary object | cffile tag to convert an image file to a binary object and then pass the binary object to the ImageNew function |
Create a Completely Automated Public Turing test to tell Computers and Humans Apart (CAPTCHA) image | captcha action of the cfimage tag |
Action | Description |
border | Creates a rectangular border around the outer edge of an image. |
captcha | Creates a CAPTCHA image. |
convert | Converts an image from one file format to another. |
info | Creates a ColdFusion structure that contains information about the image, including the color model, height, width, and source of the image. |
read | Reads an image from the specified local file path or URL. If you do not specify an action explicitly, ColdFusion uses read as the default value. |
resize | Resizes the height and width of an image. |
rotate | Rotates an image by degrees. |
write | Writes the image to a file. You can use the write action to generate lower-resolution JPEG files. Also, use the write action to convert images to other file formats, such as PNG and GIF. |
writeToBrowser | Writes one or more images directly to a browser. Use this action to test the appearance of a single image or write multiple images to the browser without saving the images to files. |
Category | Image functions |
Verifying images and supported image formats | |
Retrieving image information | |
Reading, writing, and converting images | |
Manipulating images | ImageAddBorder, ImageBlur, ImageCopy, ImageCrop, ImageFlip, ImageGrayscale, ImageNegative, ImageOverlay, ImagePaste, ImageResize, ImageRotate, ImageScaleToFit, ImageSharpen, ImageShear, ImageTranslate |
Drawing lines, shapes, and text | |
Setting drawing controls |