Forum
Set a minimum image size
Is there a useful way of setting width and height size limits - both minimum and maximum - for image uploads?
I ask because I run into situations where site administrators upload something that just doesn’t work. At the moment I’m working with them (and adding in help text and guidance) to help them understand what works and what doesn’t, but it would be great to have a more automatic backup that throws up alerts.
The upper limit for heigh and width is set by the
height
andwidth
attributes on your template tag. Perch will scale down an image to satisfy those requirements.Thanks Drew, that works nicely!