Skip to content

Commit

Permalink
Implement Driver::version()
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Jan 12, 2025
1 parent f0307ce commit 8c94a75
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -195,4 +196,14 @@ public function checkHealth(): void
throw new DriverException("zend.max_allowed_stack_size not set to '-1'");
}
}

/**
* Return version of GD library
*
* @return string
*/
public static function version(): string
{
return VipsConfig::version();
}
}

0 comments on commit 8c94a75

Please sign in to comment.