digitalpoint
Well-known member
It would be nice if we could force all uploaded images to be "resized" as an option even if they are within the normal size constraints. Basically allow the image libraries to reduce the file sizes on uploaded images even if they are within the allowed pixel dimensions. As a test, I added
Both images stayed at 1500 x 1500 (and like I already said, I couldn't tell the difference visually). Obviously it wouldn't be ideal for every site (like photography sites that have lossless images being uploaded), but for me (and I suspect a lot of others), an option that yields 5x less space used for image uploads would be a welcome (and simple) addition.
$resizeRequired = true;
to the XF\Http\Upload
class and uploaded the same image with and without the force "resize". The end result was two images that I couldn't visually tell the difference between, with the same dimensions, but the file size was about 5x smaller.Both images stayed at 1500 x 1500 (and like I already said, I couldn't tell the difference visually). Obviously it wouldn't be ideal for every site (like photography sites that have lossless images being uploaded), but for me (and I suspect a lot of others), an option that yields 5x less space used for image uploads would be a welcome (and simple) addition.
Upvote
22