Support
- Advanced Backup
- Client Side
- Cloud Enterprise
- ColdFusion
- Captcha
- Cf Faq
- Cfc
- Cfcontent
- Cfmail
- Cfobject
- Cfsqlinjection
- Cftags
- Cfximagecr
- Customtag
- Dsnless
- Flash_form
- Reserved Words
- Tagsfunctions
- Cfusion
- Upgrade JVM for ColdFusion on Windows
- ColdFusion Error: Server monitoring and API is not available in this edition of ColdFusion Server
- Create a CFIDE mapping under IIS7
- Reset the ColdFusion Administrator password
- CFIDE FAQ
- Microsoft Access DSN in ColdFusion for 64-bit machines
- Using cfexchange tag with Hosted Messaging and Collaboration
- Create a CFIDE mapping under IIS6
- Use a Redirect Script in ColdFusion
- Access DSN on 64bit Windows ColdFusion
- Browseserver
- Configure Log Rotation for ColdFusion -out Logs
- Control Panel
- cPanel
- Customer Portal
- DNS Information
- Dedicated Servers
- DirectAdmin
- Domain Name
- dotDefender
- Dreamweaver
- FileCatalyst
- Front Page
- FTP
- General Information
- Hosted Exchange & SharePoint
- IIS6
- IIS7
- Juniper Netscreen Firewalls
- Linux
- List Server
- MIVA Merchant
- MySQL
- Patching / Server Updates
- phpMyAdmin
- Plesk
- Policies and Procedures
- Premium Spam Filtering
- Programming
- Ruby on Rails
- Search Engine Submission
- SharePoint 3
- SharePoint 2010
- SiteDesigner
- SmarterMail 3
- SmarterMail 4
- SmarterMail 5
- SmarterMail 6
- SmarterMail 7
- SmarterStats
- SmarterTrack
- SQL Server
- Secure Socket Layer (SSL)
- Uploading Your Website
- Video Tutorials
- Windows Server 2003
- Windows Server 2008
- Web Design
- WordPress
- Advanced Monitoring
- MediaWiki
- Enkompass
- Microsoft Outlook 2010
- Android
- Outlook Web Access
- Critical Availability Service
- NAS Data Transfer
- Customer Portal Demos
- Joomla
- Moodle
- Cloud Dedicated
- Gallery CMS
- phpBB
- Standard Monitoring
- Righteous Restore
- NAS (Network Attached Storage)
- Networking
- SmarterMail 8
- PCI Security Scan
- LinkTiger
- Windows Cloud VPS
- Linux Cloud VPS
- Linux VPS
- Windows VPS
- Hyper V
- ENSIM
- Alert Logic
- Webmin
- e107
- Vbulletin
- VPN
- Visual Vault
- Mozilla Thunderbird
- PyroCMS
- Active Directory
- Vmware Related
- Drupal
How do I use CFX_ImageCR?
The following article explains how to use CFX_ImageCR. CFX_ImageCR is a ColdFusion tag we have installed on our systems that performs various operations on an image file, such as renaming, resizing and cropping. The tag loads the original image and then creates a new image with requested changes.
The following are a few examples of using CFX_ImageCR:
To rename an image file:
<cfx_imagecr3 load="#expandpath('example.jpg')#"
save="#expandpath('example-resaved.jpg')#">
To resize an image file and display the new image:
<cfx_imagecr3 load="#expandpath('example.jpg')#"
save="#expandpath('example-resized.jpg')#"
resize="200x200">
<cfoutput>
<img src="example-resized.jpg">
</cfoutput>
To crop an image file and display the new image:
<cfx_imagecr3 load="#expandpath('example.jpg')#"
save="#expandpath('example-cropped.jpg')#"
crop="200x200"
anchor="center">
<cfoutput>
<img src="example-cropped.jpg">
</cfoutput>
To gather and display information about the image file:
<cfx_imagecr3 getimageinfo="#expandpath('example.jpg')#"
>
<cfoutput>
<pre>
Width = #imagecr.width#
Height = #imagecr.height#
DPI = #imagecr.dpi#
FileSize = #imagecr.filesize#
</pre>
</cfoutput>
More detailed information about this tag can be found here. This page contains a list of attributes, with examples, that are available with CFX_ImageCR.
