Forum

Thread tagged as: Question

Minimum upload size / upscale

As far as I remember, perch will never upscale an uploaded image. In that case, is it possible to check for a minimum size of the source file on upload with <perch:content type="image"/>?

Urs Bräm

Urs Bräm 1 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Check in what way? As a form of input validation?

Yes, like "the file you uploaded is smaller than required".

Drew McLellan

Drew McLellan 2638 points
Perch Support

There's nothing like that in place currently.

Ok - we'll try "content-fit" for the moment

This is a bit of an issue for me as when using output="w" and it hasn't upscaled, the value doesn't match the actual image width. Causing issues with an image gallery JS plugin that requires these values.