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: 800
Interface Height: 402
Original Width: 2835
Original Height: 1424
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: