• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author joppuyo

    (@joppuyo)

    I want users to upload images, crop them, but respect the minimum and maximum sizes i set.

    Right now you can set minimum and maximum image sizes that are inherited from the normal image field. This means, for example, you can upload/select a minimum of 1000 pixel width image. Right now this does not apply to the cropper so if you upload a 1000 px wide image, you can still crop it to for example 500 px width.

    Do you think it would make sense to limit the cropper to 1000 pixels too? So you will not be able to resize the cropper smaller than eg. 1000 pixels?

    Remove your filter: ajax_query_attachments_args and make a configuration, so users can choose if see or not resized images on gallery.

    This is by design to prevent cluttering the image gallery with several crops for every image. I’ve found it’s easier for content managers to deal with a single “source” image that can be cropped according to the requirements than dealing with a bunch of duplicates and re-cropping a cropped image.

    I still think it’s a good idea to add an option for this. I’ll add a filter to change this behavior in the next version of the plugin.

    Thread Starter eazy0174

    (@eazy0174)

    If I set a minimum and maximum size on acf there is a reason I set them, and if my website is a gallery website and users must upload 4k+ 16:9 images, I want to give then ability to crop images to 16:9 but I don’t want them to crop 4k image to HD o 720p garbage.

    Your plugin ignores acf settings, this needs to be fixed.

    Hope you understand the problem

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ignored ACF Image size’ is closed to new replies.