File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,8 @@ The `Image` class is built to work with multiple image processing backends.
22
22
- Cons: May lack advanced features and performance compared to Vips and Imagick.
23
23
- ** VIPS:** A high-performance image processing library that is not available by default in PHP installations. It is
24
24
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.
34
27
35
28
## Setting the image driver
36
29
@@ -40,7 +33,7 @@ IMAGICK, but you can change it to GD or VIPS based on your requirements.
40
33
``` php
41
34
use Codewithkyrian\Transformers\Transformers;
42
35
43
- Transformers::setup ()-> setImageDriver(ImageDriver::GD );
36
+ Transformers::setup()->setImageDriver(ImageDriver::VIPS );
44
37
```
45
38
46
39
If you're using the ` Image ` class directly, you can set the image driver using the ` setDriver() ` method.
You can’t perform that action at this time.
0 commit comments