A field for Advanced Custom Field that forces the user to crop their image to specific aspect ratio after uploading.
“高级自定义字段”的字段,该字段强制用户在上传后将其图像裁剪为特定的宽高比。
This is especially useful in responsive image use cases.
这在响应式图像用例中特别有用。 p>
After cropping, a new cropped image variant is created in the gallery and saved into the post.
裁剪后,会在图库中创建一个新的裁剪图像变体,并将其保存到帖子中。
Thumbnails are also generated for the new image.
还为新图像生成缩略图。
User can re-crop the original image at any time from the post page.
用户可以随时从帖子页面重新裁剪原始图像。 p>
The cropped image variants are hidden by default in the media browser and on the media page but you can view them by selecting the “list view” on the media page.
默认情况下,裁剪后的图像变体在媒体浏览器和媒体页面中处于隐藏状态,但是您可以通过选择媒体页面上的“列表视图”来查看它们。 p>
Compatibility
兼容性 h4>
This ACF field type is compatible with:
此ACF字段类型兼容: p>
ul>
Thanks
谢谢 h4>
Special thanks to Anders Thorborg for ACF Image Crop which served as a inspiration for this
特别感谢Anders Thorborg提供的 ACF图像裁剪,此举为我们提供了灵感
plugin.
插入。
Also, thanks to Fengyuan Chen for the cropper.js library!
另外,感谢Chen Fengyuan提供了 cropper.js 库! p>