Add-on Converting large images to a smaller size? XF2

donwon

Active member
We have users that want to upload images that are larger than allowed. Is there an add on or some way to convert images over a certain size to smaller so that they can be posted without being denied?
 
Why can’t the users convert the images to a smaller size before uploading? Or maybe increase upload size for the users?
 
Why can’t the users convert the images to a smaller size before uploading? Or maybe increase upload size for the users?

That's a good question but some users don't know how and we've set to max limit that XF2 allows without raising the server limit. We just want to make it easy but also not have to use a ton of space for these images.
 
Okay, that is right at 24 megapixels, XF has a hard coded limit of 20 megapixels.

You can over ride that by adding this to your src/config.php file.

$config['maxImageResizePixelCount'] = 20000000;

20000000 is the default value. For you to be able to upload that image, you'd likely need to increase it to 28000000 or even 40000000 if you envisage images of that size being uploaded frequently (gives a bit of breathing space for even larger images to be uploaded).

Due note though that increasing the limit could cause adverse affects such as timeouts or out of memory errors.
 
XF will resize them to what you have set in the ACP. But as stated it defaults to 20 megapixels.
 
For dealing with really large files, something else that may be of interest to some...


For optimization, there's also the one from TH...

 
Top Bottom