fs_bc Good question. Not only will non-resized images drain your storage, but they will also load slow in browsers and drain unnecessary bandwidth when viewing. I wrote a blog post about resizing and compressing images for the web here.
As you may have noticed, there is already a resizer-and-compress feature in the Files Gallery uploader. So why not just force the resizer to apply? You can even hide the resize interface from the user, so that it will automatically apply for images over a specific dimension. I don't see any other better way to enforce users to resize their images before upload, unless you can instruct them manually.
To set it up, you would assign in the custom JS config. Just an example:
https://www.files.gallery/docs/javascript-config/
_c.config = {
// uppy uploader interface options
uppy: {
// https://uppy.io/docs/compressor/
Compressor: {
interface: false, // custom option to show interface
enabled: true, // custom option Compressor enabled / disabled default with interface
quality: 0.8, // default quality, same as https://github.com/fengyuanchen/compressorjs#quality
maxWidth: 2000, // default resize max width
maxHeight: 2000, // default resize max height
},
},
}