Support

Account

Home Forums Backend Issues (wp-admin) Is it possible to require a certain image resolution for a specific image field?

Solved

Is it possible to require a certain image resolution for a specific image field?

  • I wonder one thing. Is it possible in acf to set a certain resolution requirement for an image field – to require that an image field only accepts an image with a resolution of e.g. 650px x 240px as upload? Best regards Ralf

  • Hi @rpk

    Currently, this functionality is not possible in ACF, but it may be possible in WP to require a minimum size.

    Google revealed some threads which look interesting:
    http://wordpress.stackexchange.com/questions/28359/how-to-require-a-minimum-image-dimension-for-uploading

    Thanks
    E

  • thanks @elliot ! i guess i’ve the wrong search queries – including resolution lead into nowhere. :/

    about your link, unfortunately the suggested functions.php filter isn’t viable in my use case – one global minimum image dimension won’t do the trick. I hoped it would be possible to set image dimensions for each image field separately. I have implemented a responsive image solution including retina images as well and i wanted to take care that the user who is uploading the images isn’t uploading a too small version for a specific image field by accident, which might lead to image drop outs or other oddities.

    would it be possible to make a feature request for the acf and the repeater plugin? i think it would be a neat and useful feature – or what do you think about? best regards Ralf

  • Hi @rpk

    There is no doubt it is a useful feature, but this would bloat the core plugin and stem from the minimal approach I keep with ACF.

    I’ll have a think about how I can add filters for this kind of customization in the future.

    Thanks
    E

  • @elliot that kind of “filter” functionality would be more than welcome 🙂 best regards ralf

  • Would be a VERY welcome addition, and is actually something I think should be included in WordPress as well. One of the major issues I continually face with clients is them not taking any notice of minimum image sizes I ask of them, which ends up ruining layouts I may have created.

  • Yes, this would be great.

  • herrfischer, images fields have max/min size restrictions now. See http://www.iforce.co.nz/View.aspx?i=vgg4144x.aej.png

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Is it possible to require a certain image resolution for a specific image field?’ is closed to new replies.