This is a setup to test the center-based img_resize_crop function.

Select a file, set your thumbnail generation parameters on the right, and then click where on the image your desired center is.

Your thumbnail will show up in the output box on the right. The function is available at http://rrbits.com/epb/2010/07/18/resize-and-crop/

Test files:
Thumbnail Width:
Thumbnail Height:
Interface Width: 407
Interface Height: 640
Original Width: 407
Original Height: 640
Method Suggest Center
Force Center
Only Crop

Sharpen

Suggest center tries to get your clicked point as close to the center as possible without discarding additional image regions.

force center will trim away additional parts of the image to ensure your selected point is in the center. The closer your center point is to the edge of the image, the more image data will be trimmed to ensure your selected point is in the center.


Output: