simple service-wrapper for the jpeg-recompress tool (for Linux/Mac/Windows)
Wrapper around jpeg-recompress for Linux/Mac/Windows.
You may need to set permissions in order to run the built-in binaries.
Run the test-suite to see if the built-in defaults make sense for your system:
$service = new JPEGService(); $service->compress("input.jpg", "output.jpg");
Use the optional constructor arguments to specify a custom binary path (in case none of the built-in binaries work for you) as well as customizing the command-line arguments.