Custom Tag: CF_Image_Rotate Version: 2.0 (c) 2007, Rizal Firmansyah, rizal.firmansyah@masrizal.com
CF_Image_Rotate is a quick solution to rotate and flip an image, on-the-fly. Using built-in Java provided by CFMX, this custom tag requires no CFX installation. Just put the custom tag on the working directory, and you're on!
This tag comes in handy when you have to rotate or flip images, such as:
- e-Commerce sites
- Image directory website
- User catalog / directory
- Real-estate application
- and many more...
Features
- Rotate or flip image on-the-fly, you can retain the original image unchanged.
- Fast operation
- Input image file supported: GIF, JPG, PNG
- Output image file supported: JPG, PNG
- High quality image output can be achieved by controlling JPEG compression level.
- Works using CFMX built-in Java. No 3rd party application needed. No CFX tags. Shared hosting friendly.
Just copy this custom tag in your ColdFusion working directory, and you're set
Supported ColdFusion Server:
- ColdFusion MX 6, 6.1
- ColdFusion MX 7
- ColdFusion 8
on all operating systems
Supported browsers: Since this tag is working on server side, all browsers are compatible.
Usage
| <cf_image_rotate |
InputImageFile="Full path and filename for the image to be resized (mandatory). Accept .gif, .jpg and .png image" |
| |
OutputImageFile="Full path and filename for resulting image (mandatory). Output file must be in .jpg or .png format, determined by filename extension." |
| |
Angle="Rotation angle in degree, clockwise" |
| |
FlipH="True|False, flip image horizontally" |
| |
FlipV="True|False, flip image vertically" |
| |
BgColor="Background color used to fill empty space after rotation in hexadecimal triplet" " |
| |
Quality="JPEG compression quality (0-100) 0 is the worst quality while 100 has the best quality"> |
New in V2: Support ColdFusion 8
|