Update README.md - fix some typo

This commit is contained in:
Andrew
2023-06-09 20:21:32 +03:00
committed by GitHub
parent 1e0f13a7a6
commit 10338aec18
+2 -2
View File
@@ -33,10 +33,10 @@ use geckon01\SimpleImageCompressor\SimpleImageCompressor;
To resize and compress your image you can use next code: To resize and compress your image you can use next code:
```php ```php
$resulutionTargetPercent = 50; $resolutionTargetPercent = 50;
$targetQuality = 50; $targetQuality = 50;
$compressor = SimpleImageCompressor::load("image.png"); $compressor = SimpleImageCompressor::load("image.png");
$compressedImage = $compressor->resizeAndCompress($resulutionTargetPercent, $targetQuality); $compressedImage = $compressor->resizeAndCompress($resolutionTargetPercent, $targetQuality);
$compressedImage->toFile("image"); $compressedImage->toFile("image");
``` ```
load method supports loading from local file, or you can specify any valid URL image link like this: load method supports loading from local file, or you can specify any valid URL image link like this: