Compressing JPEG images
Last updated on Apr 27, 2021 06:22:20 AM GMT | Also Applies to ColdFusion
To reduce the size of large files, you can convert a JPEG file to a lower quality image by using the write action of the cfimage tag. Specify a value between 0 (low) and 1 (high) for the quality attribute, as the following example shows:
<cfimage source="../cfdocs/images/artgallery/jeff05.jpg" action="write"
You can perform the same operation by using the ImageWrite function: