Advanced Custom Fields: Image Aspect Ratio Crop Field


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.


This ACF field type is compatible with:

  • ACF 5


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!


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


  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


Can I access metadata in the original image from a cropped image?

Yes, the original image data is saved under original_image key in the returned ACF array. You can access data such as alt text, description and title this way.

I have an issue or I want to contribute code

Please use the GitHub repository to raise issues about the plugin. You are also free to send a pull request on GitHub.

How is this different from the other plugin?

Advanced Custom Fields: Image Crop Add-on is based on exact image dimensions (like 640×480). This plugin uses an aspect ratio such as 4:3 instead. Using an aspect ratio is is more convenient when working with responsive images since you care about the aspect ratio more than pixel dimensions.

Of course, nothing will stop you from using an aspect ratio like 1200:630 which is similar to a pixel amount with this plugin, if you want.

Also, as of 2019, the other plugin is not actively maintained anymore and does not work well with latest ACF versions. I try to maintain this plugin as best as I can when new versions of ACF and WordPress come out.


28. januar, 2020
I really like this plugin a lot. I was initially disappointed because it wasn't straightforward to use with Elementor, but I figured out two workarounds that allows the plugin to work flawlessly with Elementor's dynamic features. 1) Use the ACF Cropped Image Field in any Elementor Post or CPT Widget Name your Image Aspect Ratio Crop field _thumbnail_id in order to replace the default WordPress featured image / thumbnail with your perfectly cropped acf field. 2) Use the ACF Cropped Image Field Dynamically in all other applications Create an extra CPT that uses standard ACF image fields with the exact same field name as the Aspect Ratio Crop field on the actual post type. When building your page or templates, select the image field on the other post type to call the field. God, this makes me so happy. I really love this aspect ratio cropping feature.
1. november, 2019
I've used ACF crop for a very long time and just stumbled upon this plugin today. I really like it. It works well and it feels a bit more modern. As a thanks I've contributed with a Danish translation. 🙂
31. august, 2019
Works great but I don't like how when you make a 1 crop and expect 1 image in the uploads folder but it actually makes a bunch of new sizes for this 1 crop. Clutters up the uploads folder with the exact same image. Also could you make it not mandatory to crop every upload?
6. juli, 2019
With a combination of this plugin and Toolbox, you can easily integrate it to have your Beaver Builder or Beaver Themer site recognize this as an ACF field. This plugin is amazing!
31. marts, 2019
The plugin works great, it's fast and intuitive.
Read all 9 reviews

Contributors & Developers

“Advanced Custom Fields: Image Aspect Ratio Crop Field” is open source software. The following people have contributed to this plugin.


“Advanced Custom Fields: Image Aspect Ratio Crop Field” er blevet oversat til 4 lokalområder. Thank you to the translators for their contributions.

Translate “Advanced Custom Fields: Image Aspect Ratio Crop Field” into your language.

Interesseret i udvikling?

Gennemse koden, tjek SVN repository, eller abonner på udviklerloggen via RSS.



  • Remove ramsey/uuid dependency in favor of using native wp function since the dependency caused issues in some server


  • Fix issue where image was not visible in backed due to malformed URL


  • Deployment fix


  • Feature: Add new beta feature: delete unused crop images. You can enable this by going to
    Plugins -> ACF Image Aspect Ratio Crop -> Settings
  • Fix: Update compatible version to WordPress 5.3
  • Fix: Add automated tests


  • Fix: bump plugin version


  • Fix / Breaking change: If image was deleted, object with empty original_image field was returned. In 3.0.0 false is returned instead to keep compatibility with normal image field.


  • Fix: Improve WPML compatibility


  • Feature: Add compatibility with ACF Image Crop plugin
  • Fix: Change default preview size to medium, as in ACF 5.8.1
  • Fix: Remove image CSS shadow to match latest ACF image field styles


  • Fix: Fix issue where crop coordinates persisted after deleting image


  • Feature: Cropper now remembers last crop position when re-cropping image
  • Feature: Add button to reset crop position to default (centered)
  • Fix: Bump supported WordPress version to 5.2


  • Fix: Allow cropping in cases when image is hosted remotely and is missing CORS headers


  • Fix: Fix issue where saving in image modal replaced cropped image with original when “Original image” was selected in “Image displayed in attachment edit modal dialog”
  • Fix: Actually save plugin version in the database for migration support
  • Fix: Get file hash in debug mode from file path instead of URL


  • Fix: Fix typo


  • Feature: Compatibility with WP Offload Media and similar plugins that move WordPress images to a remote location. Plugin will now attempt to fetch images from remote URLs if they are not found in the file system.
  • Breaking change: Due to new dependencies, PHP 5.5 is now the minimum required version


  • Fix: Fix deployment script


  • Feature: Handle translation through


  • Fix: Update readme


  • Fix: Update screenshots


  • Feature: It’s now possible to edit original image data instead of cropped image data when pressing the pencil button in the image field. This is handy if you have meta data such as alt text that you want to share between the original image and its cropped variants. Toggle this by selecting Settings in the plugin list.
  • Feature: There is now a progress indicator (spinner) displayed while the image is being cropped
  • Feature: If an error occurs while cropping an image, the error message is displayed inline in the modal instead of a browser alert window
  • Feature: Improved styles for the cropper
  • Feature: Modern and improved build process with webpack
  • Feature: Make it possible to localize UI texts


  • Fix: Bump supported WordPress version to 5.1


  • Fix: Update readme


  • Feature: Allow customizing file upload directory with filters aiarc_pre_customize_upload_dir and aiarc_after_customize_upload_dir


  • Fix: Update screenshots
  • Fix: Update WordPress compatibility information


  • Fix bug with detecting the same aspect ratio


  • Update compatibility information


  • Fix bug with detecting the same aspect ratio


  • User interface improvements
  • Fixed issue where cropper sometimes showed a wrong image
  • Improved performance in cases uploaded image had the correct aspect ratio. Thanks to @hrohh on for the tip!


  • Fix incompatibility with ACF 5.7


  • Release on


  • Update readme


  • Fix issue where the cropper broke if multiple images were selected inside a repeater
  • Cropper is now disabled while cropping is in progress
  • Fix issue where is was not possible to re-crop image before saving the post


  • Initial Release.