Editing ImageProxy.php to include jpegoptim compression

Amin Sabet

Well-known member
I'm trying to find a way to have the Image Proxy compress jpeg images using jpegoptim server-side, before caching them.

This is the file it seems that I need to edit:

../Library/XenForo/Model/ImageProxy.php

The compression I want to use is jpegoptim --max=90

Path to jpegoptim is /usr/bin/jpegoptim

Can anyone give me some pointers how to make the necessary edit?
 
Back
Top Bottom