Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
Signed-off-by: Lloric Mayuga Garcia <[email protected]>
  • Loading branch information
lloricode committed Mar 9, 2024
1 parent e438816 commit e3e42a2
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,24 @@ Health::checks([
]);

# specific optimizer
use Lloricode\SpatieImageOptimizerHealthCheck\Optimizer;

Health::checks([
ImageOptimizerCheck::new()
->addChecks(Optimizer::JPEGOPTIM),
]);

# multiple
Health::checks([
ImageOptimizerCheck::new()
->checkJPEGOPTIM()
->checkOPTIPNG()
->checkPNGQUANT()
->checkSVGO()
->checkGIFSICLE()
->checkWEBP(),
->addChecks([
Optimizer::JPEGOPTIM,
Optimizer::OPTIPNG,
Optimizer::PNGQUANT,
Optimizer::SVGO,
Optimizer::GIFSICLE,
Optimizer::WEBP,
]),
]);
```

Expand Down

0 comments on commit e3e42a2

Please sign in to comment.