[WordPress] 外掛分享: Advanced Custom Fields: Image Crop Add-on

首頁外掛目錄 › Advanced Custom Fields: Image Crop Add-on
WordPress 外掛 Advanced Custom Fields: Image Crop Add-on 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
20,000+
安裝啟用
★★★★
4.4/5 分(33 則評價)
3155 天前
最後更新
0%
問題解決
WordPress 3.5+ v1.4.12 上架:2014-01-31

內容簡介

ACF圖像裁剪是ACF本地Image字段的擴展版本。

該字段給開發人員 /管理員提供了一個選項,可以預定義圖像的大小,用戶會在各種編輯屏幕上被提示裁剪。這解決了WordPress執行的自動居中裁剪,導致圖像被不適當裁剪的常見問題。

插件支持定義圖像尺寸以及自定義選項,使開發人員能夠在字段編輯屏幕中指定尺寸。

該字段可以配置為強制裁剪或最小尺寸裁剪。強制裁剪將鎖定裁剪的長寬比,而最小尺寸裁剪將不允許用戶將圖像裁剪到指定尺寸以下。

這個插件不同于像Manual Image Crop這樣的插件,當用戶裁剪圖像時,將生成一個新的附件,因此相關的裁剪僅適用於編輯上下文。它還使用戶免受處理各種圖像大小的概念的困擾。

從版本1.0開始,可以配置該字段將裁剪後的圖像作為媒體項目創建(默認行為),或者僅創建該圖像並直接引用文件而不將其添加到媒體庫中。這將防止媒體庫中充滿了幾個相同圖像的裁剪版本。當選擇此選項時,該字段的唯一可用返回類型為URL。

兼容性

此外掛支援以下版本:

版本4及以上

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4.12) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Advanced Custom Fields: Image Crop Add-on」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

ACF image crop is an extended version of the native Image-field in ACF.
The field gives the developer/administrator the option to predefine a size for the image, which the user is prompted to crop on the various edit screens. This solves the common issue of images being cropped inappropriately by the automated center-crop, that wordpress performs.
The plugin supports the defined image sizes as well as a custom option, enabling the developer to specify the dimensions from within the field edit screen.
The field can be configured to enforce a hard crop or a minimal-dimension-based crop. The hard crop will lock the aspect ratio of the crop where as the minimal-dimension-based crop will not allow the user to crop the image below the specified dimensions.
This plugin diverts from plugins like Manual Image Crop in that when the user crops an image, a new attachment is generated, so that the relevant crop only applies in the context it is edited. It also keeps the user from dealing with the concept of various image sizes.
As of version 1.0 the field can be configured to either create the cropped image as a media-item (the default behavior) or simply create it and refer directly to the file without adding it to the media library. This will prevent the media library from being cluttered with several cropped versions of the same image. When this option is selected the only available return type for the field is URL.
Compatibility
This add-on will work with:

version 4 and up

延伸相關外掛

文章
Filter
Apply Filters
Mastodon