Forum
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"/>?
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"/>?
Check in what way? As a form of input validation?
Yes, like "the file you uploaded is smaller than required".
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.