I have some portrait images that I want to resize to 640x640 and crop the bottom. The media crop operation accepts a starting point for the crop but requires exact pixel sizes rather than a dimension.
I have tried cropZoom, which works but cuts around the centre of the image. I have also tried combining cropResize and crop with .cropResize(640, 640).crop(0, 0, 640, 640), but that adds black space on the right, even though cropResize on its own gives the right width (just too high).
I hope I explained all that OK.
Is there a trick I am missing?
