Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2088

phpBB Discussion • Re: [Split]Compressing uploaded image attachments?

$
0
0
You can reduce file sizes by adding max dimensions. plupload will resize the file client side to max dimesnions. There is also a quality setting but this only applies to .jpg. Max dimensions set at 2000*2000 and 85% will give you file sizes around 500KB but will vary depending on the image content. Setting it at 1500*1500 will halve that. One thing to bear in mind is images smaller than max dimensions are not resized and may actually be larger file sizes since the compression settings on cameras is very light to nothing. .png uses lossless compression and and are going to be considerably larger than .jpg.

To use WebP It appears you would first have to add Webp to the images group under manage attachment extensions if it has not already been added.

The file size stored in the DB is not the only thing, you would also need to alter the extension stored in the database and possibly other things. This would require a custom script. If you are going to go that route I'd suggest handling both the conversion of the physical file and updating the DB in one script.

Statistics: Posted by thecoalman — Tue Jan 09, 2024 10:15 am



Viewing all articles
Browse latest Browse all 2088

Trending Articles