Continuing the discussion from Optimize images before uploading?:
If it’s not clear how to efficiently resize images client-side, we should probably resize them server-side after uploading.
- A user uploads an image 10MB. It’s checked against a [newly created] setting
- The image is then resized to
max_image_size_kb(for example, 3MB). So, no original image of 10MB is saved, but rather only the resized version 3MB.
- A thumbnail is created for image if its size is bigger than
max_image_height(the way it works now).
This way we allow users to upload big images without the boredom of resizing them before uploading. In the same time, we only store reasonable size of the images, configurable in Settings.