diff --git a/src/Driver.php b/src/Driver.php index 79dacac..140da33 100644 --- a/src/Driver.php +++ b/src/Driver.php @@ -21,6 +21,7 @@ use Intervention\Image\Interfaces\FontProcessorInterface; use Intervention\Image\MediaType; use Jcupitt\Vips\BandFormat; +use Jcupitt\Vips\Config as VipsConfig; use Jcupitt\Vips\Exception as VipsException; use Jcupitt\Vips\Extend; use Jcupitt\Vips\Image as VipsImage; @@ -195,4 +196,14 @@ public function checkHealth(): void throw new DriverException("zend.max_allowed_stack_size not set to '-1'"); } } + + /** + * Return version of libvips library + * + * @return string + */ + public static function version(): string + { + return VipsConfig::version(); + } }