Resizing, then cropping

Archived from the Transloadit support forum. Originally posted on June 8, 2011; details may be outdated, see our docs for current behavior. Original thread

Hi there,

I’m wondering what the best way to resize, THEN crop something is. Basically, I want to take any image, size it down to be 400px wide, and then crop it in the center so it’s only 200 px tall.

Thanks.

Hey Brenden,

that’s pretty easy.
You would just set up two steps for that, first one using the fit resize strategy to scale it down to 400px width and the second one uses the crop strategy to ensure the 200px height.

Do you need example json for that or do you want to know anything in particular?

Kind regards,
Tim

Closing this for now.

Please feel to reopen this ticket, Brenden, if you have further questions.