From e3ea6e14a9312ae408c0c012e5b994a218a6fb3f Mon Sep 17 00:00:00 2001 From: Aditya Patadia Date: Wed, 11 Oct 2023 19:35:19 +0530 Subject: [PATCH] imageflip example updated --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c37c96..9e487ed 100644 --- a/README.md +++ b/README.md @@ -352,7 +352,9 @@ Flips an image using a given mode and this method is only for PHP version 5.4. $flip = new ImageResize('image.png'); $image = imagecreatetruecolor(200, 100); -$flip->imageFlip($image, 0); +$image->addFilter(function ($image) { + imageflip($image, IMG_FLIP_HORIZONTAL); +}); ```