Crop-Thumbnails
Description
The plugin provides the functionality to adjust the crop region of cropped images. It adds buttons to the edit pages and media dialog to access a crop editor.
In the crop editor, you can choose one or more images sizes and cut off the part of the image you want. This plugin is especially useful for theme developers who want to keep full control over cropped image sizes.
If you want to dive even deeper, you can get information about the hooks and filters on the GitHub page of the plugin.
Other Notable Features
Here are a few other notable features of this free Crop-Thumbnails plugin.
Screenshots
FAQ
The plugin do not add additional image sizes, it only provides functionality to edit the crop area.
You can use “add_image_size” inside your functions.php to add additional cropped image sizes. See “add_image_size” documentation.
add_action( 'after_setup_theme', 'my_adjust_image_sizes' ); function my_adjust_image_sizes() { //add an cropped image-size with 800 x 250 Pixels add_image_size( 'my-custom-image-size', 800, 250, true ); /** * The following image sizes use a dynamic value. * USE WITH CARE * Also the plugin supports these image-sizes, i do not recommend them! **/ //a dynamic cropped image size with 500 pixel height and the width of the original image add_image_size( 'my-dynamic-width-1', 9999, 500, true ); //a dynamic cropped image with the same ratio as the original image and 500 pixel width add_image_size( 'my-dynamic-zero-height-1', 500, 0, true ); } After you add the image-size any futher image uploads will produce a cropped image “my-custom-image-size” which you can use in post-loop:
if ( has_post_thumbnail() ) { the_post_thumbnail( 'my-custom-image-size' ); } Contributors and developers
“Crop-Thumbnails” is open source software. The following people have contributed to this plugin.
WPS
6.47
Average
Ratings
4.6 out of 5 | 67Version
1.9.7Last updated
4 months agoActive installations
40,000+WordPress version
6.8.5 or higherPHP version
7.4.0 or higherLanguages
13Tags
Images,Media Library,Post Thumbnails