Skip to content

Commit 1db67dd

Browse files
author
rune.laenen
committed
Clear description
1 parent 1927949 commit 1db67dd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

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

12-
Optimize image files using [spatie/image-optimizer](https://packagist.org/packages/spatie/image-optimizer)
12+
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.
1313

1414
### Optimization tools
1515

src/Command/MediaOptimizeCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ private function optimize(MediaEntity $media): void
159159
if (!file_exists($mediaLocation)) {
160160
return;
161161
}
162+
162163
$sizePre = filesize($mediaLocation);
163164
$this->sizePre += $sizePre;
164165

0 commit comments

Comments
 (0)