Skip to content

how to use optimization tools? #137

Answered by Tyjow
nadia-am asked this question in Q&A
Mar 31, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hi guys,

To install jpegoptim on Windows for example, simply download here the bin : https://sourceforge.net/projects/jpegoptim/
Then unzip it in a desired folder in your system for example : D:\mySuperBinFolder
Then you can use it in your project like that :

$optimizer = new OptimizerChain();
$optimizer->setTimeout(10);
$optimizer->addOptimizer((new Jpegoptim([
    '--all-progressive',
]))->setBinaryPath('D:\mySuperBinFolder'));

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@nadia-am
Comment options

@nadia-am
Comment options

@yellow1912
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nadia-am
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #136 on March 31, 2021 09:29.