Whatever message this page gives is out now! Go check it out!
ImageWrite(name [, destination, quality, overwrite])Parameter | Description |
name | Required. The ColdFusion image on which this operation is performed. |
destination | Optional. The absolute or relative on-disk or in-memory pathname where you write the file.If you create the image with the ImageNew function or another operation where you do not specify the filename, specify the destination parameter.The file format is derived from the extension of the filename. The default value for this parameter is the filename of the original image source. |
quality | Optional. Defines the JPEG quality used to encode the image. This parameter applies only to destination files with an extension of JPG or JPEG. Valid values are fractions that range from 0 through 1 (the lower the number, the lower the quality). The default value is 0.75. |
overwrite | Optional. If set to true, overwrites the destination file. |
ram:///filepath |
<!--- Use the ImageNew function to create a ColdFusion image. --->
<cfset myImage = ImageNew("http://www.google.com/images/logo_sm.gif")>
<!--- Convert the image to a PNG format. --->
<cfset ImageWrite(myImage,"google.png")>
<!--- Display the PNG image. --->
<img src="google.png">