XF 2.2 Any way to reduce file sizes of attachments?

Sal Collaziano

Well-known member
Licensed customer
I was originally allowing 10mb per attachment but I see that's not such a great idea. I'm reducing that now but was wondering if there is any way to reduce the size of the attachments already in the system. I do see an add-on that will allow dimensions to be resized - but I'm not looking to reduce the size of the dimensions. If anyone could point me in the right direction I'd greatly appreciate it.
 
I highly recommend the resizer from themehouse.

you can keep dimensions and just reduce quality a bit to save on size.

there's a cron job to fix old images as well.

I used the local tools to batch resize and now use resmushit for real-time going forward.
 
I am in the same boat. I need an addon with which I can reduce the jpeg file size in KB, not in dimensions of images and maybe also of PDFs.

This thread is 5 years old. Are there more addons for this available?

If not, how can I purchase that themehouse addon? I do not see a purchase option for this addon on their website
 
I am in the same boat. I need an addon with which I can reduce the jpeg file size in KB, not in dimensions of images and maybe also of PDFs.

This thread is 5 years old. Are there more addons for this available?

If not, how can I purchase that themehouse addon? I do not see a purchase option for this addon on their website
Check some of these options for converting all attachments to WEBP format.

 
~4 years ago we built an application-agnostic jpeg/png/gif recompressor called imageTamer.
It uses advanced recompressors ( cjpegli, pngcrush, gifsicle ) that preserve quality while reducing file size. The downside of these recompressors is that they're slow.
But that's no problem if we recompress the files in a background task.
If the resulting compressed image is not 15% smaller, it is not replaced.
It keeps a database of what images have/have not been compressed and watches the folder you point it to.
It can also rescale if it exceeds a maximum height/width.

On our ~100gb image set, we get a huge reduction in size.
Results are similar to mass webp conversion.

1781278283210.webp

The below image is an average example of cjpegli in action. The image is zoomed 2x to help display compression artifacts and detail loss.
cjpegli is genius technology. The magic is doing a good job prioritizing what details to keep and throw away.

Below, we are using an equivalent to a 83% jpeg quality and we are also rescaling.

1781278422481.webp

The software is not user friendly at this moment, but, if you have a pressing need to squish a large amount of images, something could be worked out.
 
Back
Top Bottom