Skip to content

Commit 9ada9ec

Browse files
authored
Add libvips version check to example in README.md (#262)
Useful for troubleshooting installation issues.
1 parent 3b50384 commit 9ada9ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
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)