My forum members are attaching tons of pictures everyday.
To avoid paying too much hosting fees due to picture attachment, I have set a limit of 800 kiB per attachment.
BUT this is an issue : many of my members stopped posting because they don't want to take the time to resize their pictures...
Is there a way to automatically downsize the attachment weight when someone uploads a heavy attachment ?
For example, when a member uploads a picture of 2000 kiB, the picture is accepted but automatically resized at 800 kib and stored at 800 kib on the server.
This way my server disk space would not increase too quickly and my members will stop complaining about not being able to upload pictures...
Sorry, but I do not think there is an auto-resize in the core of phpBB. This sounds like extension territory. You can try posting an idea, but I do not think it would be implemented anytime soon. You can try Extension Requests or if you're willing to pay, the Wanted! forum.
Avatar by someone named AdmiralRA on Reddit. (No, I don't have a Reddit account)
When seeking support, please consider filling out the Support Request Template. It makes it easier for anyone trying to help.
Just get them to use an image hoster like imgur or flickr.
Might be easier to request an extension to link an image hosting account to the forum so that they just have to click, upload and then the image is embedded from the external host.
-:|:- Support Request Template -:|:- "Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
It appears they have posted in wanted which makes the most sense tbh.
Avatar by someone named AdmiralRA on Reddit. (No, I don't have a Reddit account)
When seeking support, please consider filling out the Support Request Template. It makes it easier for anyone trying to help.
AmigoJack wrote: ↑Wed Mar 14, 2018 12:53 pmimgbox and ImageBam were very reliable for almost 8 years without quirky terms of service
And Imgur is a bad choice because...
"The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20 ↑
"But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10 ↑
"My reaction is not to everyone, especially to you." Raptiye, 2021-02-28 ↑
Not sure what I'm missing here but if you set the max dimension on an image they are resized automatically client side. This would necessarily reduce the file size of image larger than those dimensions.
If for example you set the max height and width to 1500 which is more than sufficient for viewing on desktop you'll get a file size of about 250KB plus the thumb. Your mileage will vary with the file size depending on the image contents and this only applies to .jpg, .png will be much larger.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”