跳到内容

SmartCrop

v1.0.0

Alex Mills · 2018年2月17日 上架

Instead of cropping to the center of an image, SmartCrop attempts to use the most interesting part of the image for the thumbnail.

正在使用
30+
评分
5.0 / 5
累计下载
2,637
最近更新
2018年2月19日
1 条评价需要 WordPress 3.5+已测试到 4.9.36PHP 5.4+

贡献者

截图

Sample source image.
Sample source image.
Default thumbnail cropping.
Default thumbnail cropping.
Cropped thumbnail with SmartCrop enabled.
Cropped thumbnail with SmartCrop enabled.
Another sample source image.
Another sample source image.
Default thumbnail cropping.
Default thumbnail cropping.
Cropped thumbnail with SmartCrop enabled.
Cropped thumbnail with SmartCrop enabled.

By default, WordPress uses the center of an image when creating cropped thumbnails. SmartCrop attempts to find and use the most interesting part of an image and centers the cropping on that portion of the image.

This process is entirely automatic and cannot be manually controlled. There are other plugins out there if you wish to manually specify where you want thumbnails to be cropped.

Since this analysis process can be slow on large images, thumbnails are initially center cropped and later asynchronously regenerated to be smartly cropped. This avoids the uploading of new images from being slow. The one side effect of this however is that your browser may load and cache the centered thumbnail before it’s re-cropped.

Want to smartly crop your past image uploads? You can use my Regenerate Thumbnails plugin to trigger that. Make sure to uncheck skipping existing thumbnails.

Need Help? Found A Bug? Want To Contribute Code?

Support for this plugin is provided via the WordPress.org forums.

The source code for this plugin is available on GitHub.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums