Ignored ACF Image size
-
Hello, your plugin has 2 problems:
First problem:
It does not respect ACF minimum and maximum sizes.
My aspect ratio is 2:3 and i set on ACF
‘min_width’ => 640,
‘min_height’ => 960,
‘max_width’ => ‘1000’,
‘max_height’ => ‘1500’,I want users to upload images, crop them, but respect the minimum and maximum sizes i set.
Inside wordpress i already have registered custom sizes, i just need users to upload correct aspect ratio images, then wordpress will resize them to @1x and @2x an i will use them on frontend. This is not possible if user upload 10×30 pixel image, your plugin will ignore ACF controls and let user set a wrong image just because it’s aspect ratio is 2:3.
Second problem:
Remove your filter: ajax_query_attachments_args and make an configuration, so users can choose if see or not resized images on gallery.
- The topic ‘Ignored ACF Image size’ is closed to new replies.