Skip to content

Commit e3ea6e1

Browse files
imageflip example updated
1 parent 478f64f commit e3ea6e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@ Flips an image using a given mode and this method is only for PHP version 5.4.
352352
$flip = new ImageResize('image.png');
353353
$image = imagecreatetruecolor(200, 100);
354354

355-
$flip->imageFlip($image, 0);
355+
$image->addFilter(function ($image) {
356+
imageflip($image, IMG_FLIP_HORIZONTAL);
357+
});
356358

357359
```
358360

0 commit comments

Comments
 (0)