Whatever message this page gives is out now! Go check it out!
Task | Functions and tags |
Create a ColdFusion image from an existing image file. | cfimage tag or the ImageNew function |
Create a blank image from scratch. | ImageNew function |
Create a ColdFusion image from BLOB data in a database. | ImageNew function with the cfquery tag |
Create a ColdFusion image from a binary object. | cffile tag with the ImageNew function |
Create a ColdFusion image from a Base64 string. | ImageReadBase64 function and the ImageNew function or the cfimage tag |
Create a ColdFusion image from another ColdFusion image. | ImageCopy function with the ImageWrite function or the Duplicate function, or by passing the image to the ImageNew function or the cfimage tag |
<cfimage source="../cfdocs/images/artgallery/jeff01.jpg" name="myImage"> |
<cfimage source="#myImage#" action="write" destination="test_myImage.jpg"> |
<cfimage source="http://www.google.com/images/logo_sm.gif" action="write" |
<cfimage source="#myImage#" action="write" destination="images/jeff01.jpg" overwrite="yes"> |
<cfset myImage=ImageNew("../cfdocs/images/artgallery/jeff01.jpg")> |
<cfimage source="../cfdocs/images/artgallery/jeff01.jpg" name="myImage"> |
<cfset myImage=ImageNew("../cfdocs/images/artgallery/jeff01.jpg")> |
<cfimage source="../cfdocs/images/artgallery/jeff01.jpg" name="myImage"> |
<cfset myImage=ImageNew("",300,200)> |
<cfset myImage=ImageNew("",200,300,"rgb")> |
<cfset x = ImageNew("c:\abc.jpg")> |
<!--- Use the cffile tag to read an image file, convert it to binary format, and write the |
<!--- Use the cfquery tag to retrieve employee photos and last names from the database. ---> |
<!--- Use the cfquery tag to retrieve all employee photos and employee IDs from a database. ---> |
<!--- This example shows how to create a ColdFusion image from a Base64 string with headers |
<!--- This example shows how to use the ImageReadBase64 function to read a Base64 string |
<!--- Use the cfimage tag to create a ColdFusion image from a JPEG file. |
<!--- Use the ImageNew function to create a ColdFusion image from a JPEG file. ---> |
<!--- Use the cfimage tag to create a ColdFusion image (myImage) and make a copy of it (myImageCopy). ---> |