Forum

Thread tagged as: Question

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.

Alex Magill

Alex Magill 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The upper limit for heigh and width is set by the height and width attributes on your template tag. Perch will scale down an image to satisfy those requirements.

Thanks Drew, that works nicely!