Replacing colors in an image with ColdFusion - Anyone know how?

A reader sent in this request today:

I'm trying to find a way to leverage open source/built-in image manipulation to allow me to replace one color in an image with another determined by a user. Have you run into this before or do you have any suggestions?

So I was sure Alagad’s Image Component would have this as it has a large number of methods, but it did not. (Alagad isn’t open source or free but at 70 bucks it is a dang solution.) Rick Root’s Image.cfc doesn’t seem to have this either.

So does anyone else know of a solution that will do this?

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments