Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I do not see the image is optimized #60

Closed
thanhansoft opened this issue Jun 5, 2018 · 2 comments
Closed

I do not see the image is optimized #60

thanhansoft opened this issue Jun 5, 2018 · 2 comments

Comments

@thanhansoft
Copy link

thanhansoft commented Jun 5, 2018

Hi admin,
I use file image at for test . I do not see it reduced in size (optimizer). Please help me
`<?php
include('vendor/autoload.php');
use Spatie\ImageOptimizer\OptimizerChainFactory;
$optimizerChain = OptimizerChainFactory::create();

$pathToImage = 'C:\xampp\htdocs\image\1.png';
$test = $optimizerChain->optimize($pathToImage);`

@freekmurze
Copy link
Member

The readme has instruction on how to log the optimization process. Please make sure you've installed the necessary binaries and you can call them from PHP.

@thanhansoft
Copy link
Author

Please help me install php binaries on windows using XAMPP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants