Skip to content
/ jpeg Public

simple service-wrapper for the jpeg-recompress tool (for Linux/Mac/Windows)

Notifications You must be signed in to change notification settings

kodus/jpeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kodus/jpeg

Wrapper around jpeg-recompress for Linux/Mac/Windows.

Build Status PHP Version PHP Version

Includes a bundled release 2.1.1 of the JPEG-Archive binaries as provided by Daniel G. Taylor.

Setup

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:

vendor/bin/codeception run

Usage

$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.

About

simple service-wrapper for the jpeg-recompress tool (for Linux/Mac/Windows)

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages