Linux 软件免费装

Advanced Custom Fields: Image Aspect Ratio Crop Field

开发者 joppuyo
更新时间 2021年3月12日 04:03
捐献地址: 去捐款
PHP版本: 5.6 及以上
WordPress版本: 5.7
版权: GPLv2 or later
版权网址: 版权信息

标签

image acf field crop

下载

3.1.10 3.1.11 3.1.12 3.1.8 3.1.9 3.2.0 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 5.0.0 5.0.0-beta1 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.1.0 5.1.1 5.1.2 6.0.0-beta1

详情介绍:

A field for Advanced Custom Fields that forces the user to crop their image to specific aspect ratio or pixel size after uploading. Using an aspect ratio 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. There are three modes of operation: aspect ratio, pixel size and free crop. You can select this option when creating the field in ACF field options. Aspect ratio Use this option if you want the image to be of specific aspect ratio like 16:9 but the pixel size is not important. After selecting an image, user can select an area from the image that matches this aspect ratio. When crop button is pressed, the area is cropped from the original image. If you need a smaller image size, you make use of WordPress's thumbnail functionality to access a smaller version of the image. Pixel size Use this option if you need a specific pixel size image like 640x480. User will not be able to select an image smaller than the defined pixel size. After selecting an image, user can select an area from the image they want, which can be larger than the pixel size but may not be smaller. The aspect ratio of the selection is locked according to the pixel size. When crop button is pressed, the area is cropped from the original image. After the crop is complete, the image will be automatically scaled down to the pixel size. This means the final image will always be the specified size. Free crop Crop can be done freely, there are no aspect ratio limitations. Requirements Compatibility Thanks Special thanks to Anders Thorborg for ACF Image Crop which served as a inspiration for this plugin. Also, thanks to Fengyuan Chen for the cropper.js library!

安装:

  1. Copy the acf-image-aspect-ratio-crop folder into your wp-content/plugins folder
  2. Activate the Image Aspect Ratio Crop plugin via the plugins admin page
  3. Create a new field via ACF and select the Image Aspect Ratio Crop type
  4. Read the description above for usage instructions

屏幕截图:

  • Cropping an image to 16:9 aspect ratio
  • Cropping in progress
  • Option to re-crop the image after upload

更新日志:

5.1.2 (2021-03-11) 5.1.1 (2021-03-11) 5.1.0 (2021-01-30) 5.0.6 (2021-01-28) 5.0.5 (2020-12-22) 5.0.4 (2020-12-13) 5.0.3 (2020-12-03) 5.0.2 (2020-11-30) 5.0.1 (2020-11-30) 5.0.0 (2020-11-30) If you find this feature useful or if you otherwise want to support the development of this plugin, please consider supporting me on GitHub Sponsors. Thank you! 4.1.4 (2020-11-19) 4.1.3 (2020-11-19) 4.1.2 (2020-10-16) 4.1.1 (2020-10-14) 4.1.0 (2020-10-07) 4.0.6 (2020-10-03) 5.0.0-beta1 (13.09.2020) 4.0.5 (2020-09-06) 4.0.4 (2020-09-06) 4.0.3 (2020-09-05) 4.0.2 (2020-08-17) 3.4.1 (2020-08-17) 4.0.1 (2020-08-17) 4.0.0 (2020-08-17) 3.4.0 3.3.2 3.3.1 3.3.0 3.2.0 3.1.12 3.1.11 3.1.10 3.1.8 3.1.0 3.0.1 3.0.0 2.2.1 2.2.0 2.1.1 2.1.0 2.0.3 2.0.2 2.0.1 2.0.0 1.3.1 1.3.0 1.2.3 1.2.2 1.2.0 1.1.2 1.1.1 1.1.0 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0