[wordpress插件] Advanced Custom Fields: Image Aspect Ratio Crop Field高级自定义字段:图像长宽比裁切字段

wordpress 插件 文章 2020-01-26 20:20 762 0 全屏看文

AI助手支持GPT4.0

评分

98

98

描述

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.

这在响应式图像用例中特别有用。

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.

用户可以随时从帖子页面重新裁剪原始图像。

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.

默认情况下,裁剪后的图像变体在媒体浏览器和媒体页面中处于隐藏状态,但是您可以通过选择媒体页面上的“列表视图”来查看它们。

Compatibility

兼容性

This ACF field type is compatible with:

此ACF字段类型兼容:

    • ACF 5
    • ACF 5

    Thanks

    谢谢

    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 库!

安装步骤

    1. Copy the acf-image-aspect-ratio-crop folder into your wp-content/plugins folder
    2. acf-image-aspect-ratio-crop 文件夹复制到您的 wp-content / plugins 文件夹

    3. Activate the Image Aspect Ratio Crop plugin via the plugins admin page
    4. 通过插件管理页面激活“图像长宽比裁剪”插件

    5. Create a new field via ACF and select the Image Aspect Ratio Crop type
    6. 通过ACF创建新字段,然后选择“图像宽高比”裁切类型

    7. Read the description above for usage instructions
    8. 阅读上面的说明以获取使用说明

下载地址

https://downloads.wordpress.org/plugin/acf-image-aspect-ratio-crop.zip

https://downloads.wordpress.org/plugin/acf-image-aspect-ratio-crop.zip

-EOF-

AI助手支持GPT4.0