• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Implemented image optimization while upload

Is it possible to optimize images by compressing the uploaded images automatically after upload if the size is bigger than the specified size? Currently, I have limited the size of image that can be uploaded but I want the users to upload any size images and process it server side to reduce size of image and to make the site load faster for low bandwidth users and also for easier backup.

Chris D

XenForo developer
Staff member
The best thing to do is set the maximum image width and height. The server will automatically resize the image so it falls within those values.

e.g. If you set it to 1024 x 1024 then an image that is 3072 x 2304 would be resized to 1024 x 768.

That makes a big difference in the image file size.

I believe their may be a hard coded value for the image quality too, but I really don't think you will need it if you force those image dimensions.


XenForo moderator
Staff member
As Chris said, resizing already occurs so all you need to do is set the options accordingly.

The FAQ in my signature explains in detail how images are handled.