When adding a thumbnail to a post in WordPress, there is often a situation where the image is not cropped the way we want. The free Post Thumbnail Editor plugin can fix this problem.
Many WordPress themes use thumbnails to grab the reader’s attention, with most of them setting automatic image cropping so that all thumbnails are the same size.
The problem is that with automatic cropping, WordPress by default shrinks the image to the required minimum width or height, then the center aligns the image and crops the edges on the sides or top and bottom (depending on the orientation of the image). For example (photo – Zach Petersen cc by-sa 2.0 ):
Thus, when creating a miniature in a standard way, our Golden Gate Bridge remained behind the scenes on the left side. The free plugin Post-Thumbnail Editor will help fix this situation.
Post-Thumbnail Editor Plugin
After installing and activating the plugin, you will be able to change any thumbnails when working with the WordPress media library. To call the editor, just select the image and click on the link “Post Thumbnail Editor“:
In the new window on the right, you can select the thumbnails you want to edit, there may be several, depending on your theme and installed plugins. After choosing the sizes, on the original on the left, mark exactly how you want to crop the image and click on the Crop button.
The plugin will create new cropped images and show them in the View tab where you can check the result and save the new thumbnails. If you make a mistake, you can always go back to the Crop tab and crop the thumbnails again using the original image.
As an alternative, consider the My Eyes Are Up Here plugin, which uses a face area recognition algorithm and adjusts the generated thumbnails accordingly. It also allows you to mark the so-called “hot spots” in case no face is found in the image.
In the built-in WordPress image editor in the “Thumbnail Settings” section, you can also edit the image that will be used as a thumbnail in galleries and in some other places. But unfortunately, this editor does not allow you to separately edit the sizes that are registered by WordPress themes and plugins.
Developers of WordPress themes and plugins will be interested to know that starting from version 3.9, the argument $cropof the kernel functions add_image_size()and set_post_thumbnail_size(), in addition to boolean values, can also take an array, where you can specify another type of automatic cropping, for example, left and top:
add_image_size( 'my-image-size', 200, 200, array( 'left', 'top' ) );
True, this behavior may seem strange to users of such a theme, because many are already accustomed to placing the most important part of the image in the center.
Have you experienced similar issues with automatic image cropping in WordPress? How did you manage to solve them? Leave your opinion in the comments or tweet us.