Skip to content

Commit 3fd1216

Browse files
feat(docs): Update image docs for vips driver
1 parent 9f3a6e3 commit 3fd1216

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

docs/utils/image.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,8 @@ The `Image` class is built to work with multiple image processing backends.
2222
- Cons: May lack advanced features and performance compared to Vips and Imagick.
2323
- **VIPS:** A high-performance image processing library that is not available by default in PHP installations. It is
2424
recommended for users who require high-speed image processing and have the VIPS extension installed.
25-
- Pros: Known for its speed and efficiency, especially for large images.
26-
- Cons: May require additional installation steps but provides excellent performance.
27-
28-
**To use the VIPS driver:**
29-
1. Install `libvips` on your machine by following the [libvips install guide](https://www.libvips.org/install.html).
30-
2. Install the VIPS PHP driver using Composer:
31-
```bash
32-
composer require rokka/imagine-vips
33-
```
25+
- Pros: Known for its speed and memory efficiency, especially for large images.
26+
- Cons: May not have all methods bound in PHP yet.
3427

3528
## Setting the image driver
3629

@@ -40,7 +33,7 @@ IMAGICK, but you can change it to GD or VIPS based on your requirements.
4033
```php
4134
use Codewithkyrian\Transformers\Transformers;
4235

43-
Transformers::setup()->setImageDriver(ImageDriver::GD);
36+
Transformers::setup()->setImageDriver(ImageDriver::VIPS);
4437
```
4538

4639
If you're using the `Image` class directly, you can set the image driver using the `setDriver()` method.

0 commit comments

Comments
 (0)