Auto crop images from top instead of center in WordPress
Updated On May 23, 2015 August 19, 2013 -Written ByIf you run an image intensive WordPress website, then you must have encountered problem with automatic image cropping resulting in out of focus thumbnail image (specially for long vertical photos). By default, WordPress automatic image cropping take image center as rule to generate thumbnail images. However, using top direction as rule will generate better looking thumbnail photos as seen below.
Setup automatic image cropping from top direction
Crop from Top plugin adds this functionality to your WordPress website. Once plugin is installed and activated you are all set – there is no setting to configure. To get feel of the plugin functionality, upload a vertically long image and then insert thumbnail of that photo.
As seen in screenshot above, thumbnail image as a result of plugin on the right side provide better perspective and orientation of the uploaded image as against center rule auto cropping of the image. This small addition can make thumbnail images on WordPress website look much better, what say?
This will also work without having to install a plugin.
add_image_size( ‘wordpress-thumbnail’, 200, 200, array( ‘left’, ‘top’ ) );