We're updating the issue view to help you get more done. 

Resizing "large" images is slow and consumes a lot of memory


This is true for Lucee 4.5, Lucee 5.2 and Adobe ColdFusion 10, 11, and 2016. There may not be a good way to improve this, but I'm putting this ticket in so it can at least be looked into.

Taking a JPG file that's around 18 Megs and resizing it to another size takes over 1 minute of processing and consumes 500 MB to 1 GB of RAM on the heap. By contrast the same resize operation using the ImageMagik CLI uses around 1GB of RAM but only runs for around 9 seconds. The java resize code spends a great deal of time doing getRGB calls. Probably once for every single Pixel in the image which would be millions of times.

Here is the only line of code needed to reproduce this:

1 <cfimage action="resize" source="bigImage.jpg" destination="smallImage.jpg" height="120" width="150">

Here is a URL to download the image file (too large to attach to this ticket)

Here's the ImageMagik call I tested with that took 9 seconds (requires you to install ImageMagik)

1 $> magick convert bigImage.jpg -resize 120x150 smallImage.jpg




Michael Offner


Brad Wood



Fix versions