We help IT Professionals succeed at work.
Get Started

Coldfusion Image Crop issue

Last Modified: 2015-04-08
Iv been having this issue for some time now. I'm an average coldfusion developer and I just can't seem to figure this out.

What im trying to do here is have an upload image form; followed by a check to see if the image exceeds 2000px; if it does then resize the image down to 1000px and also crop the image at the top and bottom only leaving the centre section of the image.

So basically the 2000px image would be resized to 1000px and the top and bottom of the image would be cropped by a percentage. Leaving only the centre (horizontally) of the image.

I tried coding this and it was a complete mess and riddled with errors so I'm not even going to post it.

I'm looking for a code snippet that could do all that. I'm experienced enough in coldfusion to adapt that snippet to my already in place coding.

Thanks allot.
Watch Question
Most Valuable Expert 2015
This problem has been solved!
Unlock 1 Answer and 13 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE