From 3c9a86bdbbe5f654d902e26b7fda8ec027a73308 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Fri, 21 Feb 2025 16:10:25 +0100 Subject: [PATCH] Add libvips version check to example in README.md Useful for troubleshooting installation issues. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 39ed779..7d3dbc9 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,9 @@ To your `php.ini`. require __DIR__ . '/vendor/autoload.php'; use Jcupitt\Vips; +// check libvips version +echo 'libvips version: ' . Vips\Config::version() . PHP_EOL; + // fast thumbnail generator $image = Vips\Image::thumbnail('somefile.jpg', 128); $image->writeToFile('tiny.jpg');