plugin-icon

Advanced Custom Fields: Image Aspect Ratio Crop Field

De joppuyo·
Campo de ACF que permite al usuario recortar la imagen a una relación de aspecto o tamaño en píxeles específico .
Valoraciones
4.8
Versión
6.0.5
Instalaciones activas
20K
Última actualización
Oct 5, 2025

Un campo para Advanced Custom Field que fuerza al usuario a recortar su imagen a una relación de aspecto o tamaño en píxeles específico después de subirla. Usar una relación de aspecto es especialmente útil en casos de uso de imágenes adaptables.

Después de recortar, se crea una nueva variante de la imagen recortada en la galería y se guarda en la publicación. También se generan miniaturas para la nueva imagen. El usuario puede volver a recortar la imagen original en cualquier momento desde la página de la publicación.

Las variantes de la imagen recortada están ocultas por defecto en el navegador de medios y en la página de medios, pero puedes verlas seleccionando la «vista de lista» en la página de medios.

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 640×480. 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

  • WordPress 4.9 or later
  • PHP 5.6 or later
  • Advanced Custom Fields 5.8 or later (Pro or Free)

Compatibilidad

  • Polylang Pro
  • Enable Media Replace
  • WP Offload Media, Media Cloud and other plugins that move media files to remote location

  • ACF 5.8 or later (Pro or Free)

Gracias

Agradecimientos especiales para Anders Thorborg de ACF Image Crop que sirvió como inspiración para este plugin. Además, ¡gracias a Fengyuan Chen por cropper.js !

Gratiscon el plan Business
Probado hasta
WordPress 6.8.3
Te puedes descargar este plugin para utilizarlo en tu sitio de .