From 10338aec18deaedf7f00e7a0464f2307fde4d6de Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 9 Jun 2023 20:21:32 +0300 Subject: [PATCH] Update README.md - fix some typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0d500af..1d66992 100644 --- a/README.md +++ b/README.md @@ -33,10 +33,10 @@ use geckon01\SimpleImageCompressor\SimpleImageCompressor; To resize and compress your image you can use next code: ```php -$resulutionTargetPercent = 50; +$resolutionTargetPercent = 50; $targetQuality = 50; $compressor = SimpleImageCompressor::load("image.png"); -$compressedImage = $compressor->resizeAndCompress($resulutionTargetPercent, $targetQuality); +$compressedImage = $compressor->resizeAndCompress($resolutionTargetPercent, $targetQuality); $compressedImage->toFile("image"); ``` load method supports loading from local file, or you can specify any valid URL image link like this: