Skip to content

Commit 3c9a86b

Browse files
committed
Add libvips version check to example in README.md
Useful for troubleshooting installation issues.
1 parent 256575d commit 3c9a86b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ To your `php.ini`.
7373
require __DIR__ . '/vendor/autoload.php';
7474
use Jcupitt\Vips;
7575

76+
// check libvips version
77+
echo 'libvips version: ' . Vips\Config::version() . PHP_EOL;
78+
7679
// fast thumbnail generator
7780
$image = Vips\Image::thumbnail('somefile.jpg', 128);
7881
$image->writeToFile('tiny.jpg');

0 commit comments

Comments
 (0)