這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Smart Image Crop AI

外掛說明

If your WordPress website crops certain image sizes, you may find this plugin useful. This plugin uses machine learning to automatically find the main focus of an image, and crop to that, regardless of the crop ratio.

Features

  • Automagically crop to the “main focus” of an image, whether a face or object.
  • Preview smart crops before saving them.
  • Select multiple images to smart crop or select all displayed.
  • Load as many images as you want with infinite scroll loading (like Media library).
  • Smart crop a specific attachment’s image sizes with a smart crop button on the attachment page.
  • Compatible with thumbnail regeneration and image optimization plugins (but see below).

How Does It Work?

This plugin uses the Google Cloud Vision API to guess the perfect crop for an image. It requires a Google Cloud Vision API key, which is free and can be acquired here. As of 2022, the first 1000 requests per month are free. If you need more that is between you and our Google overlords (i.e. you’ll need to give them your credit card).

Can I automatically smart crop all images at once?

Yes and no. You can load all of the eligible images in the tool by scrolling down until they’re all on the page, then selecting all and clicking “save and overwrite”. This long-running operation may time out, or you may run out of credits with Google. If so, just refresh the page and only the un-smart cropped images will be displayed. Good luck!

Is it Compatible With Image Optimization Plugins?

Yes, but you may need to recompress any smart cropped images. If a smart cropped image is derived from an image that is already compressed, it is likely to be fairly small anyway. TinyPNG keeps track of what images have changed after compression so you can recompress them. Smush and Shortpixel do not.

Is it Compatible with WebP?

Not yet. I plan to include automatic smart cropping of webp images in a future version.

Is it Compatible with Retina?

Not yet. I plan to include automatic smart cropping of retina images in a future version.

Can it automatically smart crop on image upload?

I have deliberately left out this feature to avoid conflict with other image plugins. I may add it later.

螢幕擷圖

  • The SmartCrop user interface.
  • Image sizes selected for smart cropping.
  • Images smart cropped. Note the smart cropped has been previewed, but not saved yet.

安裝方式

  1. Install this plugin from the directory or by downloading it directly from here and uploading it.
  2. Activate the plugin.
  3. All smart crop functionality can be found in Tools -> Smart Image Crop.
  4. You’ll need your Google Cloud Vision API key to get started, see link in settings.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Smart Image Crop AI〉的開發相關工作。

參與者

將〈Smart Image Crop AI〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄