Skip to content

Commit

Permalink
Clear description
Browse files Browse the repository at this point in the history
  • Loading branch information
rune.laenen committed Dec 18, 2020
1 parent 1927949 commit 1db67dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

![Image Optimizer for Shopware 6](https://user-images.githubusercontent.com/3930922/102516043-b9b34780-408e-11eb-92f1-f9b0bdf70888.png)

Optimize image files using [spatie/image-optimizer](https://packagist.org/packages/spatie/image-optimizer)
Optimize image files using [spatie/image-optimizer](https://packagist.org/packages/spatie/image-optimizer). This package can optimize PNGs, JPGs, SVGs and GIFs by running them through a chain of various [image optimization tools](#optimization-tools). This Shopware plugin uses it's power to optimize the original files uploaded to your Shopware webshop. It doesn't touch any generated (thumbnail) files and thus will not have a lot of impact on the frontend of your website.

### Optimization tools

Expand Down
1 change: 1 addition & 0 deletions src/Command/MediaOptimizeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ private function optimize(MediaEntity $media): void
if (!file_exists($mediaLocation)) {
return;
}

$sizePre = filesize($mediaLocation);
$this->sizePre += $sizePre;

Expand Down

0 comments on commit 1db67dd

Please sign in to comment.