Home › Forums › Backend Issues (wp-admin) › 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.
herrfischer, images fields have max/min size restrictions now. See http://www.iforce.co.nz/View.aspx?i=vgg4144x.aej.png
The topic ‘Is it possible to require a certain image resolution for a specific image field?’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.