[JAI] Image cropping to fixed width and height
I want to use JAI to resize and crop JPEG/GIF images. I need the final
images to share the same width and height.
So, I think, firstly I should resize the original image (of any size)
- keeping the proportions intact. And after this first step
I want to end up having an image with the best possible 'match' to the
width and height I want for my final image (as close as possible).
Secondly, I want to crop the image and end up with the final image -
having the width and height I intended for it.
I also would like to have an option for where the cropping should
ocurr. Left upper corner, right upper corner or in the centre.
Is this possible? I'd very grateful for help with this.
/best regards, H