Image cropper gives you an API for cropping images inside WordPress.
As of April 2026, Image Cropper is a WordPress api plugin with 40 active installations and a 0/5 rating0. It has been downloaded 2.6K+ times in total. Requires WordPress 3.0+ and PHP false+. Available on WordPress.org since 2011. Last updated 14 years ago — may have compatibility concerns. Top alternative: WP Consent API.
For cropping a post thumbnail image to 200×300 pixels:
<?php
the_post();
img(200, 300);
?>
This will verify the existence of post thumbnail, crop the image, save it in uploads folder, and generate an image tag.
To verify the existence of a post thumbnail, you can use has_img()
<?php if (has_img()): ?>
<figure>
<?php img(200, 300) ?>
<figcaption>Some text</figcaption>
</figure>
<?php endif ?>
To crop images that are not post thumbnails, you can use crop($url, $size)
<?php
$cropped_url= crop( get_bloginfo('url') . '/wp-content/uploads/image.jpg', array(200, 300) );
?>
<img src="<?php echo $cropped_url ?>">
| WordPress | 3.0+ requiredTested up to 3.2.1 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.