Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on no libvips #69

Open
Gruven opened this issue Jan 30, 2025 · 1 comment · May be fixed by #70
Open

Exception on no libvips #69

Gruven opened this issue Jan 30, 2025 · 1 comment · May be fixed by #70

Comments

@Gruven
Copy link

Gruven commented Jan 30, 2025

Describe the bug

There is no exception if no libvips installed.

Code Example

use Intervention\Image\Drivers\Vips\Driver as VipsDriver;

// checkHealth in __contruct should throw an exception
new VipsDriver();

Expected behavior

checkHealth should throw an exception when no libvips installed. Maybe checkHealth should check version through Jcupitt\Vips\FFI::version() and catch Jcupitt\Vips\Exception, as health checks already implemented by php-vips?

Environment:

  • PHP Version: 8.1.27
  • OS: Debian 12
  • Intervention Image Version: 3.11.0
  • php-vips Version: 2.4.1
  • libvips Version: N/A
@olivervogel
Copy link
Member

Sounds reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants